Monday, June 21, 2010

Color your bash prompt and set title for your xterm


you can color your bash prompt
add the following line to your
PS1='\[\e[0;32m\]\u@\h\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]'

~/.bash_profile

or
~/.bashrc


to set title for your xterm
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'

No comments:

Post a Comment