diff --git a/src/.config/fish/config.fish b/src/.config/fish/config.fish index 1e8eee5..871390f 100644 --- a/src/.config/fish/config.fish +++ b/src/.config/fish/config.fish @@ -29,3 +29,5 @@ fish_vi_key_bindings bind -M insert \ce accept-autosuggestion -m default bind -M default \ce execute + +set __fish_git_prompt_showdirtystate 1 diff --git a/src/.config/fish/functions/prompts.fish b/src/.config/fish/functions/prompts.fish index 1a610ba..0222328 100644 --- a/src/.config/fish/functions/prompts.fish +++ b/src/.config/fish/functions/prompts.fish @@ -16,7 +16,10 @@ function fish_right_prompt set usercolor (set_color $col) end - printf '%s%s@%s%s' $usercolor \ + printf '%s ' \ + (fish_git_prompt) + printf '%s%s@%s%s'\ + $usercolor \ (echo $USER | string shorten -m 5 -c '') \ (echo $hostname | string shorten -m 1 -c '') \ (set_color normal)