From de20bf0470ebed6d25c02bb9f01ae5db8434d76e Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 22 Aug 2023 02:21:49 +0300 Subject: [PATCH] fish: colors --- cli/.config/fish/functions/prompt.git.fish | 2 +- cli/.config/fish/functions/prompt.user.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/.config/fish/functions/prompt.git.fish b/cli/.config/fish/functions/prompt.git.fish index f4c0710..b64d86e 100644 --- a/cli/.config/fish/functions/prompt.git.fish +++ b/cli/.config/fish/functions/prompt.git.fish @@ -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) diff --git a/cli/.config/fish/functions/prompt.user.fish b/cli/.config/fish/functions/prompt.user.fish index b627674..7155f98 100644 --- a/cli/.config/fish/functions/prompt.user.fish +++ b/cli/.config/fish/functions/prompt.user.fish @@ -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