diff .shell.d/99.prompt.bash @ 50:cb6704a7cef2

Fix root version of the bash prompt to not hork command line wrapping.
author Augie Fackler <durin42@gmail.com>
date Thu, 19 Feb 2009 09:17:56 -0600
parents 62bfb554ab85
children
line wrap: on
line diff
--- a/.shell.d/99.prompt.bash
+++ b/.shell.d/99.prompt.bash
@@ -1,5 +1,5 @@
 if [ "x`whoami`" = "xroot" ] ; then
-    PS1='\e];\u@\h: \w [bash]\a[\h:\w] \e[31m\u\e[0m# '
+    PS1='\[\e];\u@\h: \w [bash]\]\a[\h:\w] \[\e[31m\]\u\[\e[0m\]# '
 else
     PS1='\[\e];\u@\h: \w [bash]\a\][\h:\w] \[\e[34m\]\u\[\e[0m\]$ '
 fi