Skip to content

Instantly share code, notes, and snippets.

@tlrobinson
Created September 7, 2011 06:45
Show Gist options
  • Save tlrobinson/1199925 to your computer and use it in GitHub Desktop.
Save tlrobinson/1199925 to your computer and use it in GitHub Desktop.
Prompt of Disapproval. Inspired by https://github.com/NateStedman/shell-of-disapproval
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
tlrobinson:~$ false
tlrobinson:~$ ಠ_ಠ true
tlrobinson:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment