Tuesday, May 18, 2010

My bashrc changes

Apart from the traditional personal alias lines, here are the commands I do like to add in the /etc/bashrc of every server.

The first one is dedicated to everybody who uses to tease me with the song "linux is only black and white". It may be less visual that other OS, but we can manage to add some colours to make it easier (and prettier) :
PS1='[\[\033[0;31m\]\u\[\033[0m\]@\[\033[1;31m\]\h \[\033[0;35m\]\W\[\033[0m\]]\$ '

Second set of commands is to get a more powerfull bash history. Knowing what has happened on your server is fine, but knowing when it happened is also a very valuable information. And let's add some colours again :
MY_BASH_BLUE="\033[0;34m" #Blue

No comments:

Post a Comment