fix(fish) improve git prompt

This commit is contained in:
Bruno Carlin 2022-03-30 10:26:50 +02:00
parent b781e257dd
commit 115bfcd352
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_git_prompt_char_dirtystate:\u2718
SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d

View file

@ -37,7 +37,7 @@ function fish_prompt --description 'Write out the prompt'
echo -n -s (__bcarlin_prompt_venv)
echo -n -s "$USER" @ (prompt_hostname) ' ' $_pwd
echo -n -s (__fish_git_prompt)
echo -n -s (fish_git_prompt)
if test $last_status -ne 0
echo -n -s (set_color red --bold)" [$last_status]" (set_color normal)
end