mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
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.
This commit is contained in:
parent
969928e500
commit
0bf5316249
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue