sajad torkamani

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

Leave a comment

Your email address will not be published. Required fields are marked *