Skip to content

Instantly share code, notes, and snippets.

@ninjachen
Forked from rkaneko/InstallZshOnCentOS.md
Last active August 20, 2018 05:42
Show Gist options
  • Save ninjachen/cbeb5bb7629f9931392d0c3b4263884b to your computer and use it in GitHub Desktop.
Save ninjachen/cbeb5bb7629f9931392d0c3b4263884b to your computer and use it in GitHub Desktop.
Installing zsh on CentOS

Installing zsh on CentOS

$ sudo yum install ncurses-devel

$ cd /usr/local/src

$ sudo curl -L https://sourceforge.net/projects/zsh/files/zsh/5.5.1/zsh-5.5.1.tar.gz/download -o zsh-5.5.1.tar.gz

$ sudo tar xvzf zsh-5.0.7.tar.gz

$ cd zsh-5.0.7

$ sudo ./configure && sudo make && sudo make install

# add zsh to login shells
$ sudo -e /etc/shells
# add '/usr/local/bin/zsh' to last line
# /usr/local/bin/zsh

# change some user's login shell
$ sudo chsh ninja
New shell [/bin/bash]: /usr/local/bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment