One bash prompt to rule them all
July 20th, 2007 by aeI 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
2 Comments » Comments to this post
2 Responses to “One bash prompt to rule them all”
Leave a Reply
September 28th, 2009 at 6:00 am
urytigek…
MIND Your Intellect – World’s Most Powerful Mind P… …
January 14th, 2010 at 7:39 pm
ypohuty…
Download mp3 with Daniel Jacque
…