ee69c14beb24c652707b2f6b2a9db0fa8b238d05

Author
John Matczak <50644033+cidrmill@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(fishy): add color to username (#12369)

Diff

 1diff --git a/themes/fishy.zsh-theme b/themes/fishy.zsh-theme
 2index 2b8d559e5e64b72aaf335997497730acd1afdf91..3b975c8f464e4ecbf098e5a7b2e9900ed89ad12c 100644
 3--- a/themes/fishy.zsh-theme
 4+++ b/themes/fishy.zsh-theme
 5@@ -16,7 +16,8 @@ _fishy_collapsed_wd() {
 6 }
 7 
 8 local user_color='green'; [ $UID -eq 0 ] && user_color='red'
 9-PROMPT='%n@%m %{$fg[$user_color]%}$(_fishy_collapsed_wd)%{$reset_color%}%(!.#.>) '
10+local host_color='white'; [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && host_color='yellow'
11+PROMPT='%{$fg[$user_color]%}%n%{$reset_color%}@%{$fg[$host_color]%}%m %{$fg[$user_color]%}$(_fishy_collapsed_wd)%{$reset_color%}%(!.#.>) '
12 PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
13 
14 local return_status="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}"