The benefit of this shell are the highly customizable themes. The themes can offer you easy to read details that are related to the current context of what you’re doing.
Many themes display the current Git repo and branch for the current directory.
Note: You will likely need to restart the computer to finish this install.
Here’s a good tutorial on customizing Oh My Zsh.
The website states that you should run
curl -L http://install.ohmyz.sh | sh to install
zsh but it’s not that simple if you have a fresh install of Ubuntu 14. In order to run
Oh My Zsh you have to first install
sudo apt-get update sudo apt-get install zsh sudo apt-get install git-core
Now you can install Oh My Zsh.
sudo curl -L http://install.ohmyz.sh | sh
If you saw an error massage like one of the following
chsh: option requires an argument or
Password: chsh: PAM: Authentication failure then the script is having trouble setting ZSH as the default shell.
You can resolve this problem by running the install script manually.
rm -fr .oh-my-zsh/ curl -L http://install.ohmyz.sh > install.sh sh install.sh
On some Linux platforms you have to run
bash install.shinstead of
Let’s make sure ZSH is installed now.
whereis zsh zsh: /bin/zsh /usr/bin/zsh /etc/zsh /usr/bin/X11/zsh /usr/share/zsh
If ZSH isn’t found then remove the
.oh-my-zsh folder from your home folder and start over again.
If ZSH is found then the install script is failing to change the default shell. You can set ZSH as the default shell manually for the current user with this command.
chsh -s $(which zsh) $(whoami)
You can check what the default shell is for your account by running this command.
cat /etc/passwd | grep $(whoami)
chshyou might have to log out and log back in again to see the changes persist.
If ZSH is installed correctly, but
chsh is not working to set it as the default. You can carefully set the shell manually for your user account.
sudo nano /etc/passwd
Find the line with your username:
and replace bash with zsh:
If none of the above has worked for you. Please post a comment below and share how you resolved it.