diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 103041ee..422af753 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -79,8 +79,10 @@ prompt_end() { # Context: user@hostname (who am I and where am I) prompt_context() { - if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then + if [[ "$USER" != "$DEFAULT_USER" ]]; then prompt_segment black default "%(!.%{%F{yellow}%}.)$USER@%m" + elif [[ "$USER" == "$DEFAULT_USER" && -n "$SSH_CLIENT" ]]; then + prompt_segment black default "%(!.%{%F{yellow}%}.)%m" fi }