Need command for Ubuntu enable fish shell

Asked By 20 points N/A Posted on -
qa-featured

Can any expert help me how to Ubuntu enable fish shell is activated through command prompt for scripting purpose?

Thanks
SHARE
Best Answer by Baker Mich
Answered By 0 points N/A #152884

Need command for Ubuntu enable fish shell

qa-featured

You can enable fish shell by opening your command prompt and then type chsh-s/usr/bin/fish.

Please take note however that it won’t work right away.

You have to log out first then sign back in for it to take effect.

If you don’t do that, it won’t work.

If you have any more concerns just send me a message.

 

Best Answer
Best Answer
Answered By 5 points N/A #152885

Need command for Ubuntu enable fish shell

qa-featured

Hi Michele,

First use fish as your primary choice shell. To get this type the following while getting to the command prompt.

  • Run 'sudo gedit /etc/shells' and add '/usr/local/bin/fish' as a new last line.
  • Run 'chsh -s /usr/local/bin/fish'

Sign-out and then get in again to help shell change functions. Next whenever you open a terminal you will be in the fish mode rather than bash.

We can run 'chsh -s /bin/bash' any time to help bash become our default shell again.

Hope this helps.

Thanks

Baker

 

Related Questions