Skip to content

Instantly share code, notes, and snippets.

@EmranAhmed
Forked from tsabat/zsh.md
Last active September 7, 2015 07:38
Show Gist options
  • Select an option

  • Save EmranAhmed/f65e502aa3c09a9114f2 to your computer and use it in GitHub Desktop.

Select an option

Save EmranAhmed/f65e502aa3c09a9114f2 to your computer and use it in GitHub Desktop.
Getting oh-my-zsh to work in Ubuntu, zshell ubuntu, ohmyzsh ubuntu

Prereq:

apt-get install zsh
apt-get install git-core

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

change zshell default user

nano ~/.zshrc

and put

prompt_context () { }

or

prompt_context() {
    if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
        prompt_segment black red "SSH"
    fi
}

then source ~/.zshrc

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