A Useful Bash Command Prompt

The default bash command prompt is an untapped space for information provision. I prefer something that gives some important information; user, host, current directory, and current git branch. This was generated courtesy of Bash Prompt Generator.

PROMPT_COMMAND='PS1_CMD1=$(git branch 2>/dev/null | grep '"'"'*'"'"' | colrm 1 2)'; PS1='\[\e[92m\]\u\[\e[0m\]@\h [\[\e[96m\]\w\[\e[0m\]] [\[\e[95m\]${PS1_CMD1}\[\e[0m\]]\n#'