FISH_RIGHT_PROMPT(1)
πΈ fish_right_prompt β the manual page, but make it cute πΈ
okay bestie, so this is a page from the fish-shell manual set (that's the manual name, slay) and it's literally all about fish_right_prompt. it's short. it's sweet. it's giving "small but mighty" energy. let's get into it π
β¨ NAME β¨
fish_right_prompt β the function that defines what your right-side command line prompt looks like π«Ά
β¨ SYNOPSIS β¨
function fish_right_prompt
...
end
that's it. that's the whole shape of it. no cap.
β¨ DESCRIPTION β¨
so fish_right_prompt is basically fish_prompt's sibling, right? same vibe, different side of the screen β it shows up on the right side of the terminal window instead of the left. iconic behaviour honestly.
β οΈ heads up bestie: multiple lines are not supported in fish_right_prompt. one line only. it's a one-line kinda girlie. don't try to make it a whole essay, it will not eat π
and here's a detail you actually need to know: if fish_transient_prompt is set to 1, then fish_right_prompt --final-rendering gets run before executing the commandline. so yeah, that flag is a real thing that happens in that situation β remember it, iykyk.
β¨ EXAMPLE β¨
here's a simple right prompt, because sometimes simple ate and left no crumbs:
function fish_right_prompt -d "Write out the right prompt"
date '+%m/%d/%y'
end
look at her go. a whole date stamp, chillin' on the right. π
β¨ Copyright β¨
the fish-shell developers made this. respectfully, kings and queens and everyone in between π
and that's the page fr fr! source + version + date for the sign-off: this is from fish-shell version 4.9, dated Sep 08, 2026 β so yeah, go set up a cute right prompt and make your terminal main character energy. π¦β¨π
π¦ 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