Pimping bash up

It's hard to pimp Bash up, but it can be done.

When the terminal is launched on Mac OS X the prompt looks like this:

x1-6-00-17-f2-f0-7b-6d:~/Desktop amix$ |

I got tired of it, especially the name (which looks like a MAC address!?). Googling a little I found a good mini book on how to configure bash.

The deal is to change the PS1 variable. If you change it to:

PS1='[ \u@:\e[34m\w \e[m] '

The prompt will now look like this:

[ amix@:~/Desktop ] |

Which is pretty cool - with colors :)

Stuff · Tips 28. Dec 2006
© Amir Salihefendic. Powered by Skeletonz.