Skip to content

Instantly share code, notes, and snippets.

@yetithefoot
Forked from tsabat/zsh.md
Last active April 6, 2024 12:00
Show Gist options
  • Save yetithefoot/0cd0dd695c08b5c0ed20 to your computer and use it in GitHub Desktop.
Save yetithefoot/0cd0dd695c08b5c0ed20 to your computer and use it in GitHub Desktop.

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`

or for concrete user

chsh -s `which zsh` username

If you need to setup zsh for concrete user you can run:

sudo chsh -s $(which zsh) username

and then restart

sudo shutdown -r 0

This problem is explained in depth in this issue

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