mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
cb6d5d76c8
Closes #2699 Fixes issues with: * 'string' function synopsis * Redirection display issues * Better file & path detection * Rendering of % & @ chars in both html and man * @ symbol in tutorial Improves robustness by implementing an @EOL marker to prevent hold buffer dumping extra chars after the end of an expression. Added new '{{' and '}}' meta-chars for when you want curly braces in a regexp that was previously tripping up the lexicon. Improve man/html presentation consistency for * string * printf * prompt_pwd * type Use cli-styling for 'practical' examples. Add <bs> tag for presenting content with preceding backslash. Signed-off-by: Mark Griffiths <mark@thebespokepixel.com>
27 lines
621 B
Plaintext
27 lines
621 B
Plaintext
\section fish_right_prompt fish_right_prompt - define the appearance of the right-side command line prompt
|
|
|
|
\subsection fish_right_prompt-synopsis Synopsis
|
|
\fish{synopsis}
|
|
function fish_right_prompt
|
|
...
|
|
end
|
|
\endfish
|
|
|
|
\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
|
|
|