mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 02:41:14 -03:00
40 lines
739 B
ReStructuredText
40 lines
739 B
ReStructuredText
.. _cmd-fish_right_prompt:
|
|
|
|
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
|
|
|
|
|