FISH\_RIGHT\_PROMPT(1) fish-shell FISH\_RIGHT\_PROMPT(1)

# [NAME](#NAME)

fish\_right\_prompt - define the appearance of the right-side command line prompt

# [SYNOPSIS](#SYNOPSIS)

```
function fish_right_prompt


    ...
end
```

# [DESCRIPTION](#DESCRIPTION)

**fish\_right\_prompt** is similar to **fish\_prompt**, except that it appears on the right side of the terminal window.

Multiple lines are not supported in **fish\_right\_prompt**.

If **fish\_transient\_prompt** &lt;#envvar-fish\_transient\_prompt&gt; is set to 1, **fish\_right\_prompt --final-rendering** is run before executing the commandline.

# [EXAMPLE](#EXAMPLE)

A simple right prompt:

```
function fish_right_prompt -d "Write out the right prompt"


    date '+%m/%d/%y'
end
```

# [Copyright](#Copyright)

fish-shell developers

October 10, 2026 4.9

---

Document: fish_right_prompt(1) from fish 4.9.3-r1 (Chainguard OS)
Source: https://github.com/fish-shell/fish-shell
