Minor fixes

This commit is contained in:
Austen Adler 2016-07-18 16:42:34 -04:00
parent 1f9998a81c
commit 417a236ab5
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

View File

@ -62,17 +62,8 @@ eval my_gray='$FG[237]'
eval my_orange='$FG[214]' eval my_orange='$FG[214]'
# right prompt # right prompt
if type "virtualenv_prompt_info" > /dev/null if [[ $EUID -ne 0 ]] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ]; then
then RPROMPT="$my_gray%n@%m%{$reset_color%}%"
if [[ $EUID -ne 0 ]] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ]; then
RPROMPT='$(virtualenv_prompt_info)$my_gray%n@%m%{$reset_color%}%'
else
RPROMPT='$(virtualenv_prompt_info)$my_red%n@%m%{$reset_color%}%'
fi
else else
if [[ $EUID -ne 0 ]] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ]; then RPROMPT="$my_red%n@%m%{$reset_color%}%"
RPROMPT='$my_gray%n@%m%{$reset_color%}%'
else
RPROMPT='$my_red%n@%m%{$reset_color%}%'
fi
fi fi