Tweaked fish_prompt document in a way I hope clarifies it

This commit is contained in:
ridiculousfish 2012-07-13 21:32:50 -07:00
parent 6819696222
commit 8643870822

View file

@ -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