[feature] enable fish_git_prompt

This commit is contained in:
Klesh Wong 2020-09-21 21:11:29 +08:00
parent 56e90c6560
commit 593c2fbbfe
2 changed files with 4 additions and 1 deletions

View File

@ -21,9 +21,9 @@ end
source-file-if-exists /usr/share/autojump/autojump.fish
source-file-if-exists /usr/local/share/autojump/autojump.fish
append-path-if-exists ~/.local/bin
append-path-if-exists ~/Programs/bin
append-path-if-exists ~/.yarn/bin
source-file-if-exists ~/.cargo/env
append-path-if-exists ~/Programs/bin
append-path-if-exists /usr/local/bin
#/usr/bin/xmodmap /home/klesh/.Xmodmap

View File

@ -1,3 +1,5 @@
set -g __fish_git_prompt_show_informative_status 1
# Defined in /tmp/fish.hyt5lE/fish_prompt.fish @ line 2
function fish_prompt --description 'Write out the prompt'
set -l color_cwd
@ -19,5 +21,6 @@ function fish_prompt --description 'Write out the prompt'
if set -q VIRTUAL_ENV
echo -n -s (set_color -b blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal)
end
echo -n -s (fish_git_prompt)
echo -n -s "$suffix "
end