mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-29 16:09:35 +08:00
Added small note to the fish_prompt doc
This commit is contained in:
parent
193bbd4e00
commit
6819696222
@ -11,6 +11,9 @@ By defining the \c fish_prompt function, the user can choose a custom
|
||||
prompt. The \c fish_prompt function is executed when the prompt is to
|
||||
be shown, and the output is used as a prompt.
|
||||
|
||||
Please keep in mind that the function is executed by <a
|
||||
href='./index.html#expand-command-substitution'>command substitution</a> and so, even though on the outside it won't change, it's still possible to locally redefine variables and have the status variable changed.
|
||||
|
||||
\subsection fish_prompt-example Example
|
||||
|
||||
A simple prompt:
|
||||
|
Loading…
x
Reference in New Issue
Block a user