Skip to content

Instantly share code, notes, and snippets.

@spacelatte
Last active August 18, 2016 15:15
Show Gist options
  • Save spacelatte/ce0aea54962a16891af096d7989b90f3 to your computer and use it in GitHub Desktop.
Save spacelatte/ce0aea54962a16891af096d7989b90f3 to your computer and use it in GitHub Desktop.
bash PS1 for presentations... paste it to your terminals initial command
export PS1='\[$(_EC=$?; if [ $_EC -ne 0 ]; then tput setaf 1; fi; printf "\]%3d" $_EC;) \[$(tput setaf 3;)\]\w$(__git_ps1 "\[$(tput sgr0;)\]:\[$(tput setaf 2;)\]%s";) \[$(tput setaf 7;)\]\$ \[$(tput sgr0;)\]'; tput clear;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment