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
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.
1$~ echo $0 2-zsh #output