1

First I installed fish and then I wanted to test zsh so I installed it. Actually I'm using zsh and it works perfect (at the moment): I can switch themes, enable plugins, etc...

But when I do:

echo $SHELL

it should return /bin/zsh, and by surprise it returns /usr/bin/fish

I'm using Kubuntu 14.04. Is it ok, or should I fix it?

heemayl
  • 93,925
Unix
  • 217

1 Answers1

5

SHELL always (well, if not set manually) expands to the login shell (defined in /etc/passwd) of the user, not necessarily the shell user currently using.

You can cross check with:

grep -Po '^username:.*:\K[^:]+$' /etc/passwd

Replace username with your real username.

If you want to change your login shell, modify /etc/passwd or better use chsh:

chsh -s /path/to/shell username
heemayl
  • 93,925