Merge branch 'master' of github.com:ge045/oh-my-zsh

This commit is contained in:
Georg Ogris 2016-01-21 15:25:03 +01:00
commit de1d393521

View file

@ -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
}