mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 05:52:46 +08:00
fish_prompt: clarify comment about carried-over status (#8335)
This commit is contained in:
parent
df9f01dd50
commit
475a2afc40
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user