How to set zsh as the default terminal shell
bash as my everyday shell.
zsh is not the default shell on macOS.
To make it as a default shell for your machine, simply do the following:
Make sure zsh is available on your system. If not, install it with
1$~ brew install zsh 2 3$~ which zsh 4/usr/local/bin/zsh #output
zsh as default shell
To set is as default shell, run the following in your terminal:
1$~ sudo sh -c "echo $(which zsh) >> /etc/shells" 2$~ chsh -s $(which zsh)
Then, simply reopen your shell again and it should used
zsh as the default shell. That’s it.
To check which shell you’re using
If you are still unsure whether your shell is running
bash, run the following in your terminal:
1$~ echo $0 2-zsh #output