Mostrar o branch atual na linha de comando quando estiver em um diretório utilizando git (adicional com cores)
// $ sudo vim ~/.bash_profile
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[0;37m\]\w\[\033[00m\]$(git branch &>/dev/null; if [ $? -eq 0 ]; then echo "\[\033[01;33m\] ($(git branch | grep ^*|sed s/\*\ //))\[\033[00m\]"; fi) \n$ '
// $ source ~/.bash_profile