Colorful Informative Github Bash Prompt
export PS1='$(git branch &>/dev/null; if [ $? -eq 0 ]; then \ | |
echo "\[\e[0;32m\][GIT: \[\e[0;31m\]$(basename `pwd`); \[\e[0;33m\]$(git branch | grep ^*|sed s/\*\ //) \ | |
$(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; if [ "$?" -eq "0" ]; then \ | |
echo "\[\e[0;32m\]clean"; else \ | |
echo "\[\e[0;31m\]dirty"; fi)\[\e[0;32m\]] \$ "; else \ | |
echo "\[\e[0;31m\][\w]\[\e[m\] \$ "; fi) \[\e[0m\]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
awesome!