Files
fish-shell/doc_src/cmds/fish_right_prompt.rst
Johannes Altmanninger 7a59540517 docs: use :doc: role when referencing entire pages
No need to define "cmd-foo" anchors; use :doc:`foo <cmds/foo>`
instead. If we want "cmd-foo" but it should be tested.

See also 38b24c2325 (docs: Use :doc: role when linking to commands,
2022-09-23).
2025-11-06 12:58:59 +01:00

38 lines
711 B
ReStructuredText

fish_right_prompt - define the appearance of the right-side command line prompt
===============================================================================
Synopsis
--------
::
function fish_right_prompt
...
end
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 :envvar:`fish_transient_prompt` is set to 1, ``fish_right_prompt --final-rendering`` is run before executing the commandline.
Example
-------
A simple right prompt:
::
function fish_right_prompt -d "Write out the right prompt"
date '+%m/%d/%y'
end