Use 𝓥 as prompt sign when in vagrant

This commit is contained in:
Philipp Frischmuth 2012-08-23 15:47:49 +02:00
parent 19c1c9dd32
commit 53e79d6fdd
No known key found for this signature in database
GPG key ID: 963CC190454A2EBF

View file

@ -53,11 +53,21 @@ function promptSetup () {
fi fi
# rootshell gets another prompt sign # rootshell gets another prompt sign
CURRENT_USER=whoami
PR_SIGN=$NOCOLOR PR_SIGN=$NOCOLOR
PR_SIGN+="%F{160}%B" PR_SIGN+="%F{160}%B"
PR_SIGN+=%(#."☠".'∴') if [[ $CURRENT_USER == 'root' ]]; then
PR_SIGN+="☠"
elif [[ $CURRENT_USER == 'vagrant' ]]; then
PR_SIGN+="𝓥"
else
PR_SIGN+="∴"
fi
#PR_SIGN+=%(#."☠".'∴')
PR_SIGN+="%F{white}%b" PR_SIGN+="%F{white}%b"
# http://unix.stackexchange.com/questions/1022/is-it-possible-to-display-stuff-below-the-prompt-at-a-prompt # http://unix.stackexchange.com/questions/1022/is-it-possible-to-display-stuff-below-the-prompt-at-a-prompt
terminfo_down_sc=$terminfo[cud1]$terminfo[cuu1]$terminfo[sc]$terminfo[cud1] terminfo_down_sc=$terminfo[cud1]$terminfo[cuu1]$terminfo[sc]$terminfo[cud1]