mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Sample prompts: Remove stray space after pipestatus
This would, with the default color, have an ugly red background. So just remove the space.
This commit is contained in:
parent
db9ac527af
commit
34d4afac99
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ function fish_prompt --description 'Informative prompt'
|
|||
or set_color $fish_color_cwd) \
|
||||
(prompt_pwd) (set_color normal)
|
||||
else
|
||||
set -l pipestatus_string (__fish_print_pipestatus "[" "] " "|" (set_color $fish_color_status) \
|
||||
set -l pipestatus_string (__fish_print_pipestatus "[" "]" "|" (set_color $fish_color_status) \
|
||||
(set_color --bold $fish_color_status) $last_pipestatus)
|
||||
|
||||
printf '[%s] %s%s@%s %s%s %s%s%s \n> ' (date "+%H:%M:%S") (set_color brblue) \
|
||||
|
|
|
@ -54,7 +54,7 @@ function fish_prompt --description 'Write out the prompt'
|
|||
|
||||
printf '%s ' (fish_vcs_prompt)
|
||||
|
||||
set -l pipestatus_string (__fish_print_pipestatus "[" "] " "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
|
||||
set -l pipestatus_string (__fish_print_pipestatus "[" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
|
||||
echo -n $pipestatus_string
|
||||
set_color normal
|
||||
|
||||
|
|
Loading…
Reference in a new issue