Disable welcome message in Fish Shell

The default welcome message in Fish can be surpressed or customized.

Disable welcome message

A frequently asked question is “How do I change the greeting message?”. It can be completed by editing the config.fish file:

1
vim ~/.config/fish/config.fish

Using the g global flag, the fish_greeting variable can be set to empty.

1
set -g fish_greeting

Customize welcome message

In addition to disabling, the message can be customized.

1
vim ~/.config/fish/functions/fish_greeting.fish
1
2
3
function fish_greeting
    echo "greetings!"
end