One bash prompt to rule them all

July 20th, 2007 by ae

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

2 Comments » Comments to this post

2 Responses to “One bash prompt to rule them all”

  1. urytigek Says:

    urytigek…

    MIND Your Intellect – World’s Most Powerful Mind P…

  2. ypohuty Says:

    ypohuty…

    Download mp3 with Daniel Jacque

Leave a Reply