macOS will be using zsh moving forward and we can set zsh as the default shell in Catalina which I have done. With Catalina is it ok if I remove all traces of bash and oh-my-zsh since zsh is now the default shell? Also I am using Hyper Terminal which means I do not need oh-my-zsh any longer right.
Example:
The Anaconda installer added this script originally to my bashrc or bash_profile so I copied it over to .zshrc when I switched to zsh. I recently read I didn't need to/shouldn't have copied it over since it was meant for the bash_profile but now that macOS is moving to use zsh anyway I'd like to know what I should do. Obviously I need to tell zsh where Anaconda is but do I need that script or can I just export the Anaconda path like export PATH=/Users/ty604/anaconda3/bin:$PATH?
Can I just leave this Anaconda script in zshrc and remove all traces of bash to future-proof my Mac when bash is gone?
export PATH=/Users/ty604/anaconda3/bin:$PATH # added by Anaconda3 2019.03 installer # >>> conda init >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/ty604/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" if [ $? -eq 0 ]; then \eval "$__conda_setup" else if [ -f "/Users/ty604/anaconda3/etc/profile.d/conda.sh" ]; then . "/Users/ty604/anaconda3/etc/profile.d/conda.sh" CONDA_CHANGEPS1=false conda activate base else \export PATH="/Users/ty604/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda init <<< I also have many duplicate paths in $PATH because of duplicate export commands in various shell files.
$ echo $PATH
/Users/ty604/anaconda3/bin:/Users/ty604/anaconda3/condabin:/Users/ty604/anaconda3/bin:/Users/ty604/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:/Users/ty604/flutter/bin
Files in my system
.bash_history, .bash_profile, .bashrc, .profile, .zprofile, .zsh_history, .zshrc, .zshrc.pre-oh-my-zsh
Folders in my system
.bash_sessions, .oh-my-zsh, .zsh
bashis not going away on macOS. It's just thatzsh(which has been part of macOS for some time) is now the defualt login shell. You should not try to "deletebash" from your system, as that may well break stuff (/bin/shis stillbash, for example).bash-specific in that Coda setup code. Are you having issues with it underzsh?$PATH. What is your question?/Users/ty604/anaconda3/bin. I am assuming that is becauseexport PATH=/Users/ty604/anaconda3/bin:$PATHis in more than one shell file such as.zshrcand.bashrc. And actually I found it in.bash_profileas well. Sincezshis my default shell and Catalina defaults to zsh can I remove that export from.bashrcand.bash_profile? And can I remove anybashandoh-my-zshfiles since my default is nowzsh + Hyper?