How do I set fish as the default shell?
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.
15 Answers
You can set fish as your default shell by running
chsh -s $(which fish)To do so for another user, just add the username at the end of the command, and use sudo.
Then log out and back in.
(To set it back to bash, you need to use Fish syntax of course, like this chsh -s (which bash))
usermod -s /usr/bin/fish usernameMust be run as root though.
This will change the shell permanently for the specified user.
4I just added the line fish to the end of my .bashrc.
I agree with the chsh is the correct answer. However:
If you run chsh and get error
/usr/local/bin/fish: non-standard shellsimply add the fish binary location to /etc/shells.
Found here.
1In /etc/shells, add /usr/local/bin/fish:
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
/usr/local/bin/fishThen chsh -s /usr/local/bin/fish.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"