Contents
How to change default shell to fish in Ubuntu?
To replace a bad default shell for root with fish: Install fish (with sudo apt install fish if you want Ubuntu’s package) Run sudo nano /etc/pam.d/chsh Insert a # in front of the line auth required pam_shells.so Save and exit by pressing Ctrl+O, Enter, Ctrl+X Run sudo chsh -s $(which fish) (remove the $ if you’re doing all this within fish)
How to install fish shell on Ubuntu VPS?
We can install it in the conventional way by updating our local package index and pulling the package onto our system: That is all we need to do to get the new shell onto our system. To start playing around, we’ll start a new fish shell from within our current session.
How to install fish shell in apt-get?
You can install Fish with apt-get: You can now enter the Fish shell simply by typing: You can set Fish as your default shell instead of Bash: This way, Fish will be used automatically every time you log in. Test this setting by exiting SSH, then logging back in. Upon logging in, you will be presented with a Fish shell.
How to change the properties of the fish shell?
In order to be able to change the properties of the Fish shell, we first need to create a config file. By default, Fish will show this message when you enter the shell: You can remove this message by adding the following to the ~/.config/fish/config.fish file: This will remove the message and rather set it to a blank value.
Where to find MOTD in fish shell Ubuntu?
In a properly set-up Ubuntu system, the message of the day is created with a series of scripts in /etc/update-motd.d and cached in /run/motd. So you can add to ~/.config/fish/config.fish:
How to change the MOTD message on Ubuntu 18.04?
The motd message can by customized to fit individual needs of each user or administrator by modifying the /etc/motd file or script within the /etc/update-motd.d directory. Default Ubuntu 18.04 motd message.
Where do I find my default shell in WSL?
I have fish set as my default shell in WSL and it’s at /usr/local/bin/fish because I installed from master, but before that I am pretty sure it was at /usr/bin/fish before that. What’s the output of which fish? @ohk2kt3t4 If I ran chsh -s /bin/bash then it runs fine but not for fish :/