From 0bf531624949bd79f6986622cd667881ccf1d13a Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Wed, 31 Jul 2013 15:25:29 -0700 Subject: [PATCH] git_prompt: Default upstream_prefix to nothing git.git's __git_ps1 doesn't have an upstream prefix. I'm not sure why one was added to our __fish_git_prompt, but it certainly shouldn't default to a space. --- share/functions/__fish_git_prompt.fish | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/functions/__fish_git_prompt.fish b/share/functions/__fish_git_prompt.fish index 64d7a748e..0515f16f6 100644 --- a/share/functions/__fish_git_prompt.fish +++ b/share/functions/__fish_git_prompt.fish @@ -155,8 +155,7 @@ # # The separator before the upstream information can be customized via # __fish_git_prompt_char_upstream_prefix. It is colored like the rest of -# the upstream information. It normallly defaults to a space ( ) and defaults -# to nothing () when __fish_git_prompt_show_informative_status is set. +# the upstream information. It defaults to nothing (). # # # Turning on __fish_git_prompt_showcolorhints changes the colors as follows to @@ -636,7 +635,7 @@ function __fish_git_prompt_validate_chars --description "__fish_git_prompt helpe __fish_git_prompt_set_char __fish_git_prompt_char_upstream_behind '<' '↓' __fish_git_prompt_set_char __fish_git_prompt_char_upstream_diverged '<>' __fish_git_prompt_set_char __fish_git_prompt_char_upstream_equal '=' - __fish_git_prompt_set_char __fish_git_prompt_char_upstream_prefix ' ' + __fish_git_prompt_set_char __fish_git_prompt_char_upstream_prefix '' end