How to set zsh as standard shell in Ubuntu

Install zsh

how-to-set-zsh-as-standard-shell-in-ubuntu.sh
sudo apt install zsh

Add zsh to list of valid shells

add_zsh_to_shells.sh
sudo vim /etc/shells

Add to the list

example.txt
/usr/bin/zsh

Set zsh as default shell

set_default_shell.sh
chsh -s /usr/bin/zsh

Double check

print_shell_example.sh
$ echo $SHELL

Now you might want to check out https://ohmyz.sh/#install to install a nice theme.


Check out similar posts by category: Linux