What is ZSH?
The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. -https://en.wikipedia.org/wiki/Z_shell
Install ZSH
- Log into the Linux device
- Run the following commands in a terminal window
# update apt repositories
sudo apt update
# install zsh
sudo apt install zsh -y
# test zsh is working
zsh --version
# set zsh as the default shell
chsh -s $(which zsh)
# close the current terminal window
exit - Logout and back in or reboot the Linux device
- Launch a new terminal window to verify ZSH is now the default shell
- Step through the configuration questions
- That's it! Enjoy the power and beauty of zsh
Install Oh My ZSH (Optional, but highly recommended)
- Continue with the following commands in a terminal window
# install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"