How to Make Zsh the Default Shell Without Root Access

As depicted by the title, this post keeps notes on how to make zsh the default shell without root access. BTW, I am using oh-my-zsh configuration files.

In the .bash_profile, add the following lines,

1
2
export SHELL=/bin/zsh
exec /bin/zsh -l

Where zsh will be your own location of your zsh file.