FISH_GREETING(1)
π FISH_GREETING(1) β the fish-shell one π
okay bestie, welcome to the fish_greeting page, part of the fish-shell manual π
this is the little diva that says hi when you open a terminal, and she is literally the moment.
β¨ NAME β¨
fish_greeting β display a welcome message in interactive shells π«Ά
πΈ SYNOPSIS πΈ
fish_greeting
function fish_greeting
...
end
π¦ DESCRIPTION π¦
so when an interactive fish starts up, it runs fish_greeting and shows whatever that spits out. that's it, that's the whole vibe β¨
the default fish_greeting is a function that prints a variable with the same name ($fish_greeting), so like β if all you wanna do is change the text, you can just change that variable and be done. no cap, easiest glow-up ever π
if SHELL_WELCOME is set, it gets displayed after the greeting. that's a standard environment variable that tools like systemd's run0 may set to display session information π
and yeah, you could just shove some echo calls into config.fish, but fish_greeting is that girl because it takes care of only being used in interactive shells β so it won't be used with, like, scp (which executes a shell), and that prevents some errors. main character energy fr fr π
π EXAMPLE π
wanna just empty the text? with the default greeting function, do this:
set -U fish_greeting
or set -g fish_greeting in config.fish π§
a simple greeting, iconic and lowkey:
function fish_greeting
echo Hello friend!
echo The time is (set_color yellow)(date +%T)(set_color --reset) and this machine is called $hostname
end
π Copyright π
fish-shell developers
okay that's the whole page, you ate that π now go make your shell say something cute, bestie π
β with love, from fish-shell 4.9, dated Sep 08, 2026 π¦β¨π
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms