Skip to content

Instantly share code, notes, and snippets.

@biborn
Forked from rkaneko/InstallZshOnCentOS.md
Created September 9, 2018 17:09
Show Gist options
  • Select an option

  • Save biborn/87f07cd2e5d984e9355d5c8f69d0465b to your computer and use it in GitHub Desktop.

Select an option

Save biborn/87f07cd2e5d984e9355d5c8f69d0465b 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 http://sourceforge.net/projects/zsh/files/zsh/5.0.7/zsh-5.0.7.tar.gz/download -o zsh-5.0.7.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 rkaneko
New shell [/bin/bash]: /usr/local/bin/zsh

for my env

# for my tmux login shell config
$ sudo ln -s /usr/local/bin/zsh /bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment