Fixes
This commit is contained in:
@@ -51,11 +51,19 @@ function fish_prompt --description 'Write out the prompt'
|
||||
|
||||
printf '%s ' (fish_vcs_prompt)
|
||||
|
||||
set -l status_color (set_color $fish_color_status)
|
||||
set -l statusb_color (set_color --bold $fish_color_status)
|
||||
set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus)
|
||||
echo -n $prompt_status
|
||||
set_color normal
|
||||
|
||||
echo -n "$suffix "
|
||||
set -l status_color (set_color $fish_color_status)
|
||||
set -l statusb_color (set_color --bold $fish_color_status)
|
||||
set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus)
|
||||
echo -n $prompt_status
|
||||
set_color normal
|
||||
|
||||
# Background jobs counter
|
||||
set -l jobs_count (count (jobs -p))
|
||||
if test $jobs_count -gt 0
|
||||
set_color yellow
|
||||
echo -n "[$jobs_count] "
|
||||
set_color normal
|
||||
end
|
||||
|
||||
echo -n "$suffix "
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user