Put this line into your ~/.bashrc:
case "$TERM" in
rxvt|rxvt-unicode|xterm|vt100)
export PS1="\[\e[1;32m\]\u@\[\e[1;33m\]\h\[\e[00m\]:\[\e[0;37m\]\w\[\e[00m\] \$ "
export PROMPT_COMMAND='echo -ne "\e]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
esac
- Log in to post comments