changeset 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 60dbe5b005cc
children ac7a8f9a0924
files .shell.d/99.prompt.bash
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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