Skip to content

Instantly share code, notes, and snippets.

@vinirodr
Created May 29, 2013 17:06
Show Gist options
  • Save vinirodr/5671942 to your computer and use it in GitHub Desktop.
Save vinirodr/5671942 to your computer and use it in GitHub Desktop.
export PS1='`[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "\[\e[31m\]" || echo "\[\e[32m\]"`$(__git_ps1 "(%s)\[\e[00m\]")\[\e[01;34m\]\w\[\e[00m\] \$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment