Green arroww when ssh
This commit is contained in:
parent
31a79cfd06
commit
b5d9a77fb3
|
@ -15,11 +15,20 @@ eval PR_BOLD="%{$terminfo[bold]%}"
|
|||
|
||||
# Check the UID
|
||||
if [[ $UID -ge 1000 ]]; then # normal user
|
||||
eval PR_USER='${PR_MAGENTA}%n${PR_NO_COLOR}'
|
||||
eval PR_USER_OP='${PR_BLUE}%#${PR_NO_COLOR}'
|
||||
local PR_PROMPT='$PR_NO_COLOR▶$PR_NO_COLOR'
|
||||
local PR_ARROW_UP='╭── '
|
||||
local PR_ARROW_DOWN='╰'
|
||||
# If ssh
|
||||
if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then
|
||||
eval PR_USER='${PR_GREEN}%n${PR_NO_COLOR}'
|
||||
eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
|
||||
local PR_ARROW_UP='${PR_GREEN}╭── ${PR_NO_COLOR}'
|
||||
local PR_ARROW_DOWN='${PR_GREEN}╰${PR_NO_COLOR}'
|
||||
local PR_PROMPT='$PR_GREEN▶$PR_NO_COLOR'
|
||||
else
|
||||
eval PR_USER='${PR_MAGENTA}%n${PR_NO_COLOR}'
|
||||
eval PR_USER_OP='${PR_BLUE}%#${PR_NO_COLOR}'
|
||||
local PR_PROMPT='$PR_NO_COLOR▶$PR_NO_COLOR'
|
||||
local PR_ARROW_UP='╭── '
|
||||
local PR_ARROW_DOWN='╰'
|
||||
fi
|
||||
elif [[ $UID -eq 0 ]]; then # root
|
||||
eval PR_USER='${PR_RED}%n${PR_NO_COLOR}'
|
||||
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
|
||||
|
|
Loading…
Reference in New Issue