mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 22:44:01 +00:00
prompts/disco: Remove superfluous space from git prompt
This commit is contained in:
parent
605c048fc7
commit
2a1d59107f
1 changed files with 4 additions and 2 deletions
|
@ -66,7 +66,9 @@ function fish_right_prompt
|
||||||
and set -g __fish_git_prompt_char_dirtystate \U1F4a9
|
and set -g __fish_git_prompt_char_dirtystate \U1F4a9
|
||||||
set -g __fish_git_prompt_char_untrackedfiles "?"
|
set -g __fish_git_prompt_char_untrackedfiles "?"
|
||||||
|
|
||||||
set -l vcs (fish_vcs_prompt 2>/dev/null)
|
# The git prompt's default format is ' (%s)'.
|
||||||
|
# We don't want the leading space.
|
||||||
|
set -l vcs (fish_vcs_prompt '(%s)' 2>/dev/null)
|
||||||
|
|
||||||
set -l d (set_color brgrey)(date "+%R")(set_color normal)
|
set -l d (set_color brgrey)(date "+%R")(set_color normal)
|
||||||
|
|
||||||
|
@ -82,6 +84,6 @@ function fish_right_prompt
|
||||||
set -q VIRTUAL_ENV
|
set -q VIRTUAL_ENV
|
||||||
and set -l venv (string replace -r '.*/' '' -- "$VIRTUAL_ENV")
|
and set -l venv (string replace -r '.*/' '' -- "$VIRTUAL_ENV")
|
||||||
|
|
||||||
set_color reset
|
set_color normal
|
||||||
string join " " -- $venv $duration $vcs $d
|
string join " " -- $venv $duration $vcs $d
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue