Skip to content

Commit

Permalink
feat(fishy): add color to username (#12369)
Browse files Browse the repository at this point in the history
  • Loading branch information
cidrmill committed Apr 23, 2024
1 parent 67581c5 commit ee69c14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/fishy.zsh-theme
Expand Up @@ -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%}"
Expand Down

0 comments on commit ee69c14

Please sign in to comment.