diff options
Diffstat (limited to 'bash/.bashrc')
-rwxr-xr-x | bash/.bashrc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 099cc58..a6e8305 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -132,6 +132,12 @@ shopt -s autocd # MY STUFF!! +suicidePostCommand() { + if [ $? -ne 0 ]; then + echo "$(tput setaf 3)====$(tput setaf 1)$(tput bold)$(echo -n $(shuf -n1 ~/insults.txt))$(tput sgr0)$(tput setaf 3)====$(tput sgr0)" + fi +} +PROMPT_COMMAND=suicidePostCommand [ -r /home/ben/.byobu/prompt ] && . /home/ben/.byobu/prompt #byobu-prompt# |