Install ZSH on Ubuntu
11 March 2022 (Updated 11 March 2022)
Install ZSH
sudo apt install -y zsh
Verify installation
zsh --version
You should see zsh 5.8 (x86_64-ubuntu-linux-gnu)
or something similar.
Make ZSH your default shell
chsh -s $(which zsh)
Restart your machine
sudo reboot
First time you start terminal, you’ll see a bunch of options. Press q to quit and do nothing.
Create ZSH config with initial content
vim ~/.zshrc
Populate with initial content:
export EDITOR="vim"
export PATH="$HOME/bin:$PATH"
Verify ZSH is now your default shell
echo $SHELL
You should see /usr/bin/zsh
or something similar (whatever is the output of which zsh
).
Sources
Tagged:
Ubuntu
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment