diff options
author | Ben Harris <ben@tilde.team> | 2019-03-22 12:20:02 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2019-03-22 12:20:02 -0400 |
commit | 00c5e4be8ecfa8c4f14f13c512fffdbfd1aadeb5 (patch) | |
tree | 325b2209ef8916ed4d39611b68ab29fbd4da0972 /bash | |
parent | 73a5b3a1e384de730ebfe774e1fb731d7041028a (diff) |
insults and rslap
Diffstat (limited to 'bash')
-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# |