Guest User

Untitled

a guest
Sep 14th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. GIT_PROMPT_ONLY_IN_REPO=1
  2. 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