To install zsh run:
(1) > sudo apt-get install zsh
We can run step (2) to see installed zsh version
(2) > zsh --version
in my case it was: zsh 5.1.1 (x86_64-ubuntu-linux-gnu)
And now install oh-my-zsh:
(3) > sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Now, Open ~/.zshrc file by vim or gedit
(4) > vi ~/.zshrc or gedit ~/.zshrc
Edit the file to change your theme, for expample: ZSH_THEME="agnoster"
we can find all oh-my-zsh theme's here
Reboot the system is needed in my case to apply the changes [for the first time and then changes applied just after i close the terminal and open it again]
(5) > sudo shutdown -r 0
If you want to uninstall oh-my-zsh, run step (6)
(6) > sudo sh ~/.oh-my-zsh/tools/uninstall.sh
To navigate oh-my-zsh directory, run step (7)
(7) > cd ~/.oh-my-zsh/
Finally, We can find more info on oh-my-zsh github page: https://github.com/robbyrussell/oh-my-zsh
Rails with zsh If you face this propblem: "Rails no longer working after installing oh-my-zsh" this solution worked successfully for me:
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
echo 'eval "$(rbenv init -)"' >> ~/.zshenv
echo 'source $HOME/.zshenv' >> ~/.zshrc
exec $SHELL