From f8da013f33d126c19e6ccebc1c9c2474827e5bfe Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sat, 3 Feb 2024 11:10:32 +0100 Subject: [PATCH] docs/prompt: A few small fixes `set_color` does *just* the formatting, the string to color needs to be added separately --- doc_src/prompt.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_src/prompt.rst b/doc_src/prompt.rst index e235b6618..9af9687c4 100644 --- a/doc_src/prompt.rst +++ b/doc_src/prompt.rst @@ -76,7 +76,7 @@ A "normal" color tells the terminal to go back to its normal formatting options. interpret as instructions - for example, to change color. So ``set_color red`` produces the same effect as:: - echo \e\[31mfoo + echo \e\[31m Although you can write your own escape sequences by hand, it's much easier to use ``set_color``. @@ -114,7 +114,7 @@ First of all, since every command (except for :doc:`set `) changes the set -l last_status $status -And after that, you can set a string if it not zero:: +And after that, you can set a string if it is not zero:: # Prompt status only if it's not 0 set -l stat