Minor fixes
This commit is contained in:
parent
1f9998a81c
commit
417a236ab5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user