mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Added small note to the fish_prompt doc
This commit is contained in:
parent
193bbd4e00
commit
6819696222
1 changed files with 3 additions and 0 deletions
|
@ -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
|
prompt. The \c fish_prompt function is executed when the prompt is to
|
||||||
be shown, and the output is used as a prompt.
|
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
|
\subsection fish_prompt-example Example
|
||||||
|
|
||||||
A simple prompt:
|
A simple prompt:
|
||||||
|
|
Loading…
Reference in a new issue