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

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