I've changed default shell but my terminal don't get it
Recently I've changed my default shell from bash to zsh like this:
chsh -s /bin/zsh myname
But when I invoke a new terminal (e.g. using ctrl+alt+T) I still have bash loaded:
myname@machine:~$ cat /etc/passwd | grep myname
myname:x:1000:1000:myname,,,:/home/myname:/bin/zsh
myname@machine:~$ echo $SHELL
/bin/bash
zsh is installed and can be explicitly runned with zsh
command.
How to deal with that?
Solution 1:
Edit /etc/passwd
file. In terminal type
gksu gedit /etc/passwd
Find out line containing your user name. Change /bin/bash
to /bin/zsh
.
Logout and Login again. Now zsh will be default. See the below image