Skip to content

Instantly share code, notes, and snippets.

@logicmd
Forked from tsabat/zsh.md
Created November 5, 2012 02:41
Show Gist options
  • Save logicmd/4015000 to your computer and use it in GitHub Desktop.
Save logicmd/4015000 to your computer and use it in GitHub Desktop.
Getting oh-my-zsh to work in Ubuntu

Installation

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

Config

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment