Simply a list of steps on how to install Zsh on Ubuntu and make it pretty.

1. Installing Zsh

Zsh is available in the official package repository of Ubuntu. So it’s very easy to install.

sudo apt-get update
sudo apt-get install zsh
zsh --version
You can find more instructions for different platforms here.

2. Make Zsh default shell

sudo usermod -s /usr/bin/zsh $(whoami)
sudo reboot

After reboot press Ctrl+Alt+T to open terminal and choose option 2. Zsh should create a new ~/.zshrc configuration file with the recommended settings.

3. Install Oh My Zsh

oh-my-zsh is an open source, community-driven framework for managing your zsh configuration.

Be aware, that installing oh-my-zsh changes the ~/.zshrc configuration file.
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

3.1. Plugins

oh-my-zsh comes with a shitload of plugins for you to take advantage of. You can take a look in the wiki to see what’s currently available.

To enable a plugin - just add its name to the plugins array in your ~/.zshrc file. For example, to enable git plugin:

nano ~/.zshrc
# Find plugins section and add plugin to the list
plugins=(
  git
)
If you still don’t have Git installed on your Ubuntu, simply run: sudo apt-get install git

3.2. Updating Oh My Zsh

omz update

3.3. Uninstalling Oh My Zsh

If you want to uninstall oh-my-zsh, just run command below: it will remove oh-my-zsh and revert your previous bash or zsh configuration.

uninstall_oh_my_zsh

4. Look and Feel

4.1. Setup powerline fonts

sudo apt-get install fonts-powerline

4.2. Agnoster Theme

nano ~/.zshrc
# change theme to agnoster
ZSH_THEME="agnoster"

4.3. Solarized Colorscheme for Gnome Terminal

sudo apt-get install dconf-cli
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./install.sh

Choose option 1 for dark theme.

After installation, open ~/.zshrc and add the line:

nano ~/.zshrc
# add line below
eval `dircolors ~/.dir_colors/dircolors`

Oleksii Zghurskyi