Monday, February 1, 2010

Improving the Command Prompt

I'm used to a more information rich prompt than is the default with bash on OS X.

I found a helpful page by Daniel Robbins, President and CEO of Gentoo Technologies.

Current prompt is now

PS1='\e]2;\u@\h:\w\a\e[36;40m\u@\h:\w \$ \e[0m'

which sets the current user, host, and full path into the titlebar of the window, and which sets the prompt to the same, but in cyan.

No comments:

Post a Comment