From: adefaria Date: Fri, 14 Nov 2014 03:20:18 +0000 (-0800) Subject: Fixed up setting of prompt when root. X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=cd4da2fcd8c9d1bc725e5e869e5bd3fbbea4764c;hp=--cc;p=clearscm.git Fixed up setting of prompt when root. --- cd4da2fcd8c9d1bc725e5e869e5bd3fbbea4764c diff --git a/rc/functions b/rc/functions index 2edcd15..39f7058 100644 --- a/rc/functions +++ b/rc/functions @@ -59,6 +59,7 @@ function title_bar { string=$(echo "${SYSNAME##*:}:$@") echo -n "${ESC}]2;$string\007" elif [ "$TERM" = "cygwin" -o "$TERM" = "vt100" -o "$TERM" = "xterm" ]; then + # Here's where we set the prompt with root PS1="\[\e]0;$prefix$current_dir\a$AQUA\]$ROOT\[$YELLOW\]$SYSNAME:\[$NORMAL\]" fi } # title_bar