mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Tweaked fish_prompt document in a way I hope clarifies it
This commit is contained in:
parent
6819696222
commit
8643870822
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ 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.
|
||||
href='index.html#expand-command-substitution'>command substitution</a>, and so the exit status of commands within fish_prompt will not modify the <a href="index.html#variables-status">$status</a> seen outside of fish_prompt.
|
||||
|
||||
\subsection fish_prompt-example Example
|
||||
|
||||
|
|
Loading…
Reference in a new issue