Skip to content

Instantly share code, notes, and snippets.

Last active January 11, 2022 16:24
What would you like to do?
Installing zsh on CentOS

Installing zsh on CentOS

$ sudo yum install ncurses-devel

$ cd /usr/local/src

$ sudo curl -L -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
Copy link

golkonda commented Jun 4, 2021

To untar the latest stable version zsh-5.8.tar.xz, below switches are working using tar command.

tar -xvJf zsh-5.8.tar.xz

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