Skip to content

Instantly share code, notes, and snippets.

@buryat
Created December 26, 2012 18:36
Show Gist options
  • Save buryat/4382108 to your computer and use it in GitHub Desktop.
Save buryat/4382108 to your computer and use it in GitHub Desktop.
Bash command status
PS1="\$(if [ \${?##0} ]; then echo '\e[1;31;40m\]✘\e[0m\]'; else echo '\e[1;32;40m\]✔\e[0m\]'; fi) …"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment