about summary refs log tree commit diff
path: root/bash
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2019-03-22 12:20:02 -0400
committerBen Harris <ben@tilde.team>2019-03-22 12:20:02 -0400
commit00c5e4be8ecfa8c4f14f13c512fffdbfd1aadeb5 (patch)
tree325b2209ef8916ed4d39611b68ab29fbd4da0972 /bash
parent73a5b3a1e384de730ebfe774e1fb731d7041028a (diff)
insults and rslap
Diffstat (limited to 'bash')
-rwxr-xr-xbash/.bashrc6
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#