From 475a2afc40f0ca22bbdd54bc76bf73399b6f7dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anselm=20Sch=C3=BCler?= Date: Tue, 5 Oct 2021 21:01:13 +0200 Subject: [PATCH] fish_prompt: clarify comment about carried-over status (#8335) --- share/functions/fish_prompt.fish | 2 +- share/tools/web_config/sample_prompts/default.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/fish_prompt.fish b/share/functions/fish_prompt.fish index dbfa1ac0e..fc76a8331 100644 --- a/share/functions/fish_prompt.fish +++ b/share/functions/fish_prompt.fish @@ -19,7 +19,7 @@ function fish_prompt --description 'Write out the prompt' end # Write pipestatus - # If the status was carried over (e.g. after `set`), don't bold it. + # If the status was carried over (if no command is issued or if `set` leaves the status untouched), don't bold it. set -l bold_flag --bold set -q __fish_prompt_status_generation; or set -g __fish_prompt_status_generation $status_generation if test $__fish_prompt_status_generation = $status_generation diff --git a/share/tools/web_config/sample_prompts/default.fish b/share/tools/web_config/sample_prompts/default.fish index dbfa1ac0e..fc76a8331 100644 --- a/share/tools/web_config/sample_prompts/default.fish +++ b/share/tools/web_config/sample_prompts/default.fish @@ -19,7 +19,7 @@ function fish_prompt --description 'Write out the prompt' end # Write pipestatus - # If the status was carried over (e.g. after `set`), don't bold it. + # If the status was carried over (if no command is issued or if `set` leaves the status untouched), don't bold it. set -l bold_flag --bold set -q __fish_prompt_status_generation; or set -g __fish_prompt_status_generation $status_generation if test $__fish_prompt_status_generation = $status_generation