Created
September 7, 2011 06:45
-
-
Save tlrobinson/1199925 to your computer and use it in GitHub Desktop.
Prompt of Disapproval. Inspired by https://github.com/NateStedman/shell-of-disapproval
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
PS1_BASE="$PS1" | |
format_prompt () { | |
if [ "$?" -ne "0" ]; then | |
PS1="${PS1_BASE}\[\033[0;31m\]ಠ_ಠ\[\033[0m\] " | |
else | |
PS1="${PS1_BASE}" | |
fi | |
} | |
PROMPT_COMMAND=format_prompt |
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
tlrobinson:~$ false | |
tlrobinson:~$ ಠ_ಠ true | |
tlrobinson:~$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment