fish: colors
This commit is contained in:
parent
745c771084
commit
de20bf0470
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ function prompt.git
|
||||||
set git_branch (string match -r '[^# .]+' "$line")
|
set git_branch (string match -r '[^# .]+' "$line")
|
||||||
string match -qr '\[behind' $line && set git_branch "$git_branch?"
|
string match -qr '\[behind' $line && set git_branch "$git_branch?"
|
||||||
string match -qr '\[ahead' $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
|
else
|
||||||
string match -qr "^.[MD]" "$line" && set git_count[1] (math $git_count[1] + 1)
|
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)
|
string match -qr "^[MDARC]." "$line" && set git_count[2] (math $git_count[2] + 1)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function prompt.user
|
function prompt.user
|
||||||
if test -n "$SSH_CONNECTION" || string match -qe root "$USER"
|
if test -n "$SSH_CONNECTION" || string match -qe root "$USER"
|
||||||
prompt.add $USER@$hostname
|
prompt.add $USER@$hostname brblack
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue