Recently Apple changed the default shell to zsh
from bash
. In the past I made significant changes to my .bashrc
file. How should I incorporate those changes into the zsh
terminal?
Effects of changing shell
bashcommand lineterminalzsh
Related Question
- Can’t use zsh shell in Catalina
- MacOS – sudo: setrlimit(8): Invalid argument after switching Mac OS shell from BASH to ZSH
- Change the shell that functions use
- MacOS – Big Sur switched to zsh terminal but still uses .bash_profile
- How to change this terminal customization tutorial for usage in zsh rather than bash
Best Answer
OR
Start using zsh: move the POSIX-compliant .bashrc content to .profile and source this file in .zshrc like this:
Some things may break though.
OR BEST
There is no Google translator from bashin to zshlish. If you don't post the content of your .bashrc (we still can't look over your shoulder!), we won't be able to tell what may go wrong.