fish: fix pipestatus output in prompt
This commit is contained in:
parent
09548ce411
commit
c7fd16cc1b
@ -1,6 +1,5 @@
|
|||||||
function fish_prompt --description 'Write out the prompt'
|
function fish_prompt --description 'Write out the prompt'
|
||||||
set -l last_pipestatus $pipestatus
|
set -l last_pipestatus $pipestatus
|
||||||
set -l last_status $status
|
|
||||||
set -l normal (set_color normal)
|
set -l normal (set_color normal)
|
||||||
|
|
||||||
# Color the prompt differently when we're root
|
# Color the prompt differently when we're root
|
||||||
@ -22,7 +21,7 @@ function fish_prompt --description 'Write out the prompt'
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Write pipestatus
|
# Write pipestatus
|
||||||
set -l prompt_status (__fish_print_pipestatus $last_status " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
|
set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
|
||||||
|
|
||||||
echo -n -s (set_color $color_host) $print_host (set_color $color_cwd) (prompt_pwd) $normal (fish_git_prompt) $normal $prompt_status $suffix " "
|
echo -n -s (set_color $color_host) $print_host (set_color $color_cwd) (prompt_pwd) $normal (fish_git_prompt) $normal $prompt_status $suffix " "
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user