Skip to content

Instantly share code, notes, and snippets.

@jonasabreu
Created November 8, 2013 17:50
Show Gist options
  • Save jonasabreu/7374840 to your computer and use it in GitHub Desktop.
Save jonasabreu/7374840 to your computer and use it in GitHub Desktop.
export PS1="\[\033[38m\]\u@\h\[\033[32m\] \w \[\033[31m\]\`git branch 2>/dev/null | grep \"^\*\" | sed -r \"s/\*\ (.*)/\(\1\)/\"\` \`git status --porcelain 2>/dev/null | tee >(grep -c \"^[A-Z] \") | tee >(grep -c \"^ [A-Z]\") | tee >(grep -c \"^??\") | tee >(grep -c \"^[A-Z][A-Z]\") | grep \"^[0-9]\" | tr \"\n\" \" \" | grep -v \"0 0 0 0 \"\`\[\033[37m\]$\[\033[00m\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment