From 681969622299273885eb7ac2998bde1d800d6646 Mon Sep 17 00:00:00 2001 From: Dario Bertini Date: Tue, 10 Jul 2012 19:11:21 +0200 Subject: [PATCH] Added small note to the fish_prompt doc --- doc_src/fish_prompt.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc_src/fish_prompt.txt b/doc_src/fish_prompt.txt index 4d8735b1a..22ea16434 100644 --- a/doc_src/fish_prompt.txt +++ b/doc_src/fish_prompt.txt @@ -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 command substitution 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: