This one will only prompt the current directory
export PS1='\W > '
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
green smily face if previous command was sucessful and red if something went wrong:
export smily_face='$(if [[ $? == 0 ]]; then echo "\[\e[32m\]:)"; else echo "\[\e[31m\]:("; fi)'
use all above in this way:
export PS1="$smily_face \[\033[33m\]\[\e[1m\]\W\[\e[0m\]\[\e[31m\]\$(parse_git_branch)\[\e[0m\] > "
export PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \[\033[0;36m\]\h \w\[\033[0;32m\]$(__git_ps1)\n\[\033[0;32m\]└─\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\] ▶\[\033[0m\] '