2018-12-17 09:39:33 +08:00
|
|
|
fish_right_prompt - define the appearance of the right-side command line prompt
|
|
|
|
==========================================
|
|
|
|
|
2018-12-18 09:58:24 +08:00
|
|
|
Synopsis
|
|
|
|
--------
|
2018-12-17 05:08:41 +08:00
|
|
|
|
|
|
|
function fish_right_prompt
|
|
|
|
...
|
|
|
|
end
|
2018-12-18 09:58:24 +08:00
|
|
|
|
2018-12-17 05:08:41 +08:00
|
|
|
|
|
|
|
\subsection fish_right_prompt-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`.
|
|
|
|
|
|
|
|
|
|
|
|
\subsection fish_right_prompt-example Example
|
|
|
|
|
|
|
|
A simple right prompt:
|
|
|
|
|
|
|
|
\fish
|
|
|
|
function fish_right_prompt -d "Write out the right prompt"
|
|
|
|
date '+%m/%d/%y'
|
|
|
|
end
|
|
|
|
\endfish
|
|
|
|
|