Mercurial > dotfiles
comparison .shell.d/99.prompt.bash @ 39:62bfb554ab85
Reorganize zsh files so that bash can work as well.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 26 Jan 2009 13:21:00 -0600 |
parents | |
children | cb6704a7cef2 |
comparison
equal
deleted
inserted
replaced
38:f70862dadf83 | 39:62bfb554ab85 |
---|---|
1 if [ "x`whoami`" = "xroot" ] ; then | |
2 PS1='\e];\u@\h: \w [bash]\a[\h:\w] \e[31m\u\e[0m# ' | |
3 else | |
4 PS1='\[\e];\u@\h: \w [bash]\a\][\h:\w] \[\e[34m\]\u\[\e[0m\]$ ' | |
5 fi | |
6 | |
7 if [ "$TERM" = "rxvt" ] || [ "$TERM" = "xterm" ] \ | |
8 || [ "$TERM" = "xterm-color" ] || [ "$TERM" = "screen" ]; then | |
9 export FANCYTYPE="YES" | |
10 else | |
11 export FANCYTYPE="NO" | |
12 PS1='[\h:\w] \u$ ' | |
13 fi |