Skip to content

Instantly share code, notes, and snippets.

@zz-jason
Created June 24, 2022 02:01
Show Gist options
  • Save zz-jason/4d82f5cdc72e8367cd12209601c871db to your computer and use it in GitHub Desktop.
Save zz-jason/4d82f5cdc72e8367cd12209601c871db to your computer and use it in GitHub Desktop.

Download, Build, and Install

export ZSH_HOME=/opt/zsh-5.9

wget https://sourceforge.net/projects/zsh/files/zsh/5.9/zsh-5.9.tar.xz/download
tar -xvJf download
mv zsh-5.9 zsh-5.9-src && cd zsh-5.9-src

./configure --prefix=$ZSH_HOME
make -j `nproc` && make install

Change the shell for current user

Put $ZSH_HOME/bin/zsh to the shell list of in /etc/shells, then chsh for the current user:

chsh -s $ZSH_HOME/bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment