Can't change default shell from bash to zsh

I just installed Zorin OS and then I tried changing my default shell to it with the following commands:

sudo -s
chsh -s /bin/zsh root
chsh -s /bin/zsh <my username>

Then I restarted the terminal but it still runs bash instead.
Am I missing something?

Edit: Nevermind. I checked with at /etc/passwd | grep 'cd; pwd' and it was set already, I just needed to log out and back in. It's been some time since I used Linux, not sure why I expected it to work just by closing the terminal and opening it again.

1 Like

Welcome to the Forum!

First install zsh with sudo apt install zsh and then try chsh -s $(which zsh) and then log out and in.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.