From 53e79d6fdd3997c5861c61c89b3b2df2c6ec51cb Mon Sep 17 00:00:00 2001 From: Philipp Frischmuth Date: Thu, 23 Aug 2012 15:47:49 +0200 Subject: [PATCH] =?UTF-8?q?Use=20=F0=9D=93=A5=20as=20prompt=20sign=20when?= =?UTF-8?q?=20in=20vagrant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prompt.zsh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/prompt.zsh b/prompt.zsh index 79ba005..e114cee 100644 --- a/prompt.zsh +++ b/prompt.zsh @@ -53,11 +53,21 @@ function promptSetup () { fi # rootshell gets another prompt sign + CURRENT_USER=whoami PR_SIGN=$NOCOLOR 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" + + # 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]