# HG changeset patch # User Augie Fackler # Date 1235056676 21600 # Node ID cb6704a7cef2772c231352ced1b8b45986da8ee3 # Parent 60dbe5b005cc693ece9b9e4149cdb180626d9291 Fix root version of the bash prompt to not hork command line wrapping. diff --git a/.shell.d/99.prompt.bash b/.shell.d/99.prompt.bash --- 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