hgBranch() { if [ -d .hg ]; then printf "$1" "$(hg branch)" fi } export PS1='${USER}@${HOSTNAME}:\w$(hgBranch " [\033[1;31m(%s)\033[0m]")$ '
hgBranch() { if [ -d .hg ]; then printf "$1" "$(hg branch)" fi } export PS1='${USER}@${HOSTNAME}:\w$(hgBranch " [\033[1;31m(%s)\033[0m]")$ '