diff options
| author | John Matczak <50644033+cidrmill@users.noreply.github.com> | 2024-04-23 01:54:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 10:54:00 +0200 |
| commit | ee69c14beb24c652707b2f6b2a9db0fa8b238d05 (patch) | |
| tree | 6cfd26196c09e9670df144fbd82c01bfb9cef907 /themes/fishy.zsh-theme | |
| parent | 67581c53c6458566e174620361e84b364b9034d2 (diff) | |
| download | zsh-ee69c14beb24c652707b2f6b2a9db0fa8b238d05.tar.gz zsh-ee69c14beb24c652707b2f6b2a9db0fa8b238d05.tar.bz2 zsh-ee69c14beb24c652707b2f6b2a9db0fa8b238d05.zip | |
feat(fishy): add color to username (#12369)
Diffstat (limited to 'themes/fishy.zsh-theme')
| -rw-r--r-- | themes/fishy.zsh-theme | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/fishy.zsh-theme b/themes/fishy.zsh-theme index 2b8d559e5..3b975c8f4 100644 --- a/themes/fishy.zsh-theme +++ b/themes/fishy.zsh-theme @@ -16,7 +16,8 @@ _fishy_collapsed_wd() { } local user_color='green'; [ $UID -eq 0 ] && user_color='red' -PROMPT='%n@%m %{$fg[$user_color]%}$(_fishy_collapsed_wd)%{$reset_color%}%(!.#.>) ' +local host_color='white'; [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && host_color='yellow' +PROMPT='%{$fg[$user_color]%}%n%{$reset_color%}@%{$fg[$host_color]%}%m %{$fg[$user_color]%}$(_fishy_collapsed_wd)%{$reset_color%}%(!.#.>) ' PROMPT2='%{$fg[red]%}\ %{$reset_color%}' local return_status="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}" |
