From 34d4afac99287fbbcdfdbbebae17327158ab3a0a Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 3 Apr 2021 08:55:27 +0200 Subject: [PATCH] Sample prompts: Remove stray space after pipestatus This would, with the default color, have an ugly red background. So just remove the space. --- share/tools/web_config/sample_prompts/informative.fish | 2 +- share/tools/web_config/sample_prompts/informative_vcs.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/tools/web_config/sample_prompts/informative.fish b/share/tools/web_config/sample_prompts/informative.fish index 9c492c4a0..1163a7f5a 100644 --- a/share/tools/web_config/sample_prompts/informative.fish +++ b/share/tools/web_config/sample_prompts/informative.fish @@ -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) \ diff --git a/share/tools/web_config/sample_prompts/informative_vcs.fish b/share/tools/web_config/sample_prompts/informative_vcs.fish index 554c6671a..443fbef8f 100644 --- a/share/tools/web_config/sample_prompts/informative_vcs.fish +++ b/share/tools/web_config/sample_prompts/informative_vcs.fish @@ -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