Is it possible to remove the intro message in fish shell:
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
Warning: No longer works since fish 2.4.0—see Kevin's answer for the correct contemporary solution.
If there is no environment variable named "fish_greeting", then nothing will be printed. By default, there is a fish_greeting variable. You can erase this:
set --erase fish_greeting
Read the official document please.
http://fishshell.com/docs/current/faq.html#faq-greeting
short answer: set -e fish_greeting
Add set fish_greeting
to your ~/.config/fish/config.fish
file.
This is answered in the Fish FAQ:
How do I run a command every login? What's fish's equivalent to .bashrc?
Edit the file
~/.config/fish/config.fish
, creating it if it does not exist (Note the leading period).How do I change the greeting message?
Change the value of the variable
fish_greeting
or create afish_greeting
function. For example, to remove the greeting use:set fish_greeting