mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
__fish_git_prompt: fix stateseparator color in informative_status
In informative_status mode stateseparator did not use fish_git_prompt_color settings.
This commit is contained in:
parent
1e32f9431d
commit
d49f6e1b29
1 changed files with 4 additions and 3 deletions
|
@ -373,9 +373,11 @@ function __fish_git_prompt --description "Prompt function for Git"
|
|||
__fish_git_prompt_validate_chars
|
||||
__fish_git_prompt_validate_colors
|
||||
|
||||
set -l space "$___fish_git_prompt_color$___fish_git_prompt_char_stateseparator$___fish_git_prompt_color_done"
|
||||
|
||||
if test "true" = $inside_worktree
|
||||
if test -n "$__fish_git_prompt_show_informative_status"
|
||||
set informative_status "$___fish_git_prompt_char_stateseparator"(__fish_git_prompt_informative_status)
|
||||
set informative_status "$space"(__fish_git_prompt_informative_status)
|
||||
else
|
||||
if test -n "$__fish_git_prompt_showdirtystate"
|
||||
set -l config (command git config --bool bash.showDirtyState)
|
||||
|
@ -440,7 +442,6 @@ function __fish_git_prompt --description "Prompt function for Git"
|
|||
end
|
||||
|
||||
# Formatting
|
||||
set -l space "$___fish_git_prompt_color$___fish_git_prompt_char_stateseparator$___fish_git_prompt_color_done"
|
||||
set -l f "$w$i$s$u"
|
||||
if test -n "$f"
|
||||
set f "$space$f"
|
||||
|
|
Loading…
Reference in a new issue