1
0
Fork 0

fish: colors

This commit is contained in:
Von Random 2023-08-22 02:21:49 +03:00
parent 745c771084
commit de20bf0470
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ function 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!"
prompt.add "$git_sign $git_branch" "$color_git_branch"
prompt.add "$git_sign $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)

View file

@ -1,5 +1,5 @@
function prompt.user
if test -n "$SSH_CONNECTION" || string match -qe root "$USER"
prompt.add $USER@$hostname
prompt.add $USER@$hostname brblack
end
end