Archive for July, 2007
One bash prompt to rule them all
I stumbled across Daniel Robbins blog (the creator of Gentoo) and he had an OK article on how to config your bash prompt.
While he makes a good point for using just ‘>’ and putting everything else in the window bar, that just doesn’t cut it for me.
So – heres my suggestion which I have hacked from a CentOS server I ssh into on occasions:
PS1=”\[\033[1;31m\][\$(date +%H):$(date +%M)]\[\033[1;34m\][\u@\h:\w]#\[\033[0;37m\] ”
Just whack that into bash to try it out. To save it put it into your .bashrc file