Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way to set fish as the default shell in ubuntu netbook remix? I put in my .bashrc to run fish, which works fine, but ubuntu recognizes it as fish running inside bash, which means that when I try to close the shell it warns me that a task is still running.

It doesn't pop up as a new application, so I can't pin it to my bar like a normal app.

share|improve this question

3 Answers 3

up vote 41 down vote accepted

You can set fish as your default shell by running

chsh -s /usr/bin/fish

Then log out and back in.

share|improve this answer
1  
This doesn't seem to work for me. It doesn't give an error, but it just doesn't seem to work, even if I just open a new tab. Any thoughts? –  Xodarap Feb 15 '11 at 3:05
7  
You may have to log out & back in - I just tried it on a clean virtual machine & it worked. –  ajmitch Feb 15 '11 at 3:09
2  
Thanks, worked like a charm! –  Xodarap Feb 15 '11 at 3:14
    
How do you set it back? –  knutole May 2 at 12:36
usermod -s /usr/bin/fish username

Must be run as root though.

This will change the shell permanently for the specified user.

share|improve this answer
    
I know it's not Ubuntu, but I wanted to comment: I was on CentOS, and I was getting an Authentication Failed error trying to change the shell with a non-root user and after extensively searching to try and figure it out, this was the only thing that worked. Thanks! –  CWSpear Nov 3 '13 at 4:50
    
Yes it will work on most unix flavours that have usermod and fish for a shell, or change the shell to whatever flavour you wish –  sweetfa Nov 11 '13 at 7:57

I can't comment yet, but I agree with the chsh is the correct answer. However:

If you run chsh and get error /usr/local/bin/fish: non-standard shell simply add the fish bin location to /etc/shells.

Found here: http://news.ycombinator.com/item?id=4073162

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.