Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
49:60dbe5b005cc | 50:cb6704a7cef2 |
---|---|
1 if [ "x`whoami`" = "xroot" ] ; then | 1 if [ "x`whoami`" = "xroot" ] ; then |
2 PS1='\e];\u@\h: \w [bash]\a[\h:\w] \e[31m\u\e[0m# ' | 2 PS1='\[\e];\u@\h: \w [bash]\]\a[\h:\w] \[\e[31m\]\u\[\e[0m\]# ' |
3 else | 3 else |
4 PS1='\[\e];\u@\h: \w [bash]\a\][\h:\w] \[\e[34m\]\u\[\e[0m\]$ ' | 4 PS1='\[\e];\u@\h: \w [bash]\a\][\h:\w] \[\e[34m\]\u\[\e[0m\]$ ' |
5 fi | 5 fi |
6 | 6 |
7 if [ "$TERM" = "rxvt" ] || [ "$TERM" = "xterm" ] \ | 7 if [ "$TERM" = "rxvt" ] || [ "$TERM" = "xterm" ] \ |