Install zsh and git, remove any previous installed files
sudo apt-get install zsh git
rm -r ~/.oh-my-zsh
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
and then you change your shell to zsh
chsh -s `which zsh`
and then restart
sudo shutdown -r 0
This problem is explained in depth in this issue
-
install one of the patched fonts from Vim-Powerline or patch your own for the special characters.
cd ~/.fonts/ && git clone https://github.com/scotu/ubuntu-mono-powerline.git && cd ~
-
set ZSH_THEME in ~/.zshrc to agnoster.
-
optionally set DEFAULT_USER in ~/.zshrc to your regular username to hide the “user@hostname” info when you’re logged in as yourself on your local machine.