fish_prompt: clarify comment about carried-over status (#8335)

This commit is contained in:
Anselm Schüler 2021-10-05 21:01:13 +02:00 committed by GitHub
parent df9f01dd50
commit 475a2afc40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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