Last active
August 18, 2016 15:15
-
-
Save spacelatte/ce0aea54962a16891af096d7989b90f3 to your computer and use it in GitHub Desktop.
bash PS1 for presentations... paste it to your terminals initial command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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