Fixed up setting of prompt when root.
authoradefaria <adefaria@adefaria-lt.audience.local>
Fri, 14 Nov 2014 03:20:18 +0000 (19:20 -0800)
committeradefaria <adefaria@adefaria-lt.audience.local>
Fri, 14 Nov 2014 03:20:18 +0000 (19:20 -0800)
rc/functions

index 2edcd15..39f7058 100644 (file)
@@ -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