Last active
August 29, 2015 14:15
-
-
Save DirkyJerky/8d2578bf88fe50ad3474 to your computer and use it in GitHub Desktop.
Showing last command exit status in my PS1
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
if [[ "$1" == "0" ]]; | |
then echo -n $(tput setaf 2); | |
else echo -n $(tput setaf 1); | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment