Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GIT_PROMPT_ONLY_IN_REPO=1
- export PS1='`if [ $? = 0 ]; then echo "\[\e[32m\]✔ "; else echo "\[\e[31m\] ✘ "; fi`\[\e[00;37m\]\u@mbp\[\e[01;37m\]:`[[ $(git status 2> /dev/null) =~ Changes\ .+: ]] && echo "\[\e[33m\]" || echo "\[\e[31m\]"``[[ ! $(git status 2> /dev/null) =~ nothing\ to\ commit,\ working\ .+\ clean ]] || echo "\[\e[32m\]"`$(__git_ps1 "(%s)\[\e[00m\]")\[\e[01;34m\]\w\[\e[00m\]\$ '
Add Comment
Please, Sign In to add comment