1
0
Fork 0

fish: kube support

This commit is contained in:
Von Random 2024-11-11 12:07:22 +02:00
parent afce6858f2
commit a8e215506a
4 changed files with 13 additions and 2 deletions

View file

@ -6,7 +6,7 @@ function fish_prompt.git
set git_branch (string match -r '[^# .]+' "$line")
string match -qr '\[behind' $line && set git_branch "$git_branch?"
string match -qr '\[ahead' $line && set git_branch "$git_branch!"
fish_prompt.add "$git_sign $git_branch"
fish_prompt.add "$git_symbol $git_branch"
else
string match -qr "^.[MD]" "$line" && set git_count[1] (math $git_count[1] + 1)
string match -qr "^[MDARC]." "$line" && set git_count[2] (math $git_count[2] + 1)