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]'
|
||||
|
||||
# right prompt
|
||||
if type "virtualenv_prompt_info" > /dev/null
|
||||
then
|
||||
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
|
||||
if [[ $EUID -ne 0 ]] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ]; then
|
||||
RPROMPT="$my_gray%n@%m%{$reset_color%}%"
|
||||
else
|
||||
if [[ $EUID -ne 0 ]] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ]; then
|
||||
RPROMPT='$my_gray%n@%m%{$reset_color%}%'
|
||||
else
|
||||
RPROMPT='$my_red%n@%m%{$reset_color%}%'
|
||||
fi
|
||||
RPROMPT="$my_red%n@%m%{$reset_color%}%"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user