Installing Zsh Shell in Ubuntu

1 min read  •  18 Apr 2025
Views:

Here's how you can install zsh shell in ubuntu-

  1. Run following command in your terminal
sudo apt install zsh
  1. Change your default shell to zsh by running following command
sudo chsh -s /usr/bin/zsh
  1. Logout your user, and try login again. zsh shell is installed and set to default shell successfully!
zsh-without-theme
  1. Now, let's add theme to it, I will be using pure theme.

  2. Create .zsh folder in your home directory and clone pure repository there-

mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
  1. Add following lines of code at start of your ~/.zshrc file
fpath+=($HOME/.zsh/pure)
autoload -U promptinit; promptinit
prompt pure
  1. You're all set and done!
zsh-shell