From 6d26e4d26b3e2469e4e10a3fa410806613bed93d Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Tue, 20 Aug 2019 17:07:55 -0600 Subject: [PATCH] updated bash with some fun things. automated slack updates, nethack, etc --- bash/fun | 3 +++ bash/osx/osxfun | 5 ++++- bash/rentdynamics | 19 +++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/bash/fun b/bash/fun index 7a8d772..b3ecac0 100644 --- a/bash/fun +++ b/bash/fun @@ -17,4 +17,7 @@ function pika { imgcat $IMAGE echo; } + alias pikabox='while true; do reset; pika; sleep 120; done' + +alias netrogue='nethack -u "w0ryn-rog-hum-cha-mal"' diff --git a/bash/osx/osxfun b/bash/osx/osxfun index b26d07b..2406cae 100644 --- a/bash/osx/osxfun +++ b/bash/osx/osxfun @@ -1,18 +1,21 @@ #!/bin/bash function planktimer() { - # dependencies: 'say' 'termdown' + # dependencies: 'say' 'termdown' '.wryn/bash/rentdynamics' message='Plank Time' while true; do termdown 1h30m; clear; figlet "$message" | lolcat; + # update slack status + rdplank; say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "$message"; read -n 1; if [ $1 ]; then termdown $1; say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "done"; fi + rdstart; done } diff --git a/bash/rentdynamics b/bash/rentdynamics index 82e7779..111343a 100644 --- a/bash/rentdynamics +++ b/bash/rentdynamics @@ -57,3 +57,22 @@ function rntbranchcleanup() { printf "\n\n\e[1;36m%s\e[1;35m %s\e[0m\n\n" "RentDynamics" "repository branches all clean!"; } + +function rdstatus() { + slack status edit "$1" $2 >/dev/null 2>&1; +} + +alias rdclearstatus='slack status clear >/dev/null 2>&1' + +alias rdstart='rdstatus "dont panic!" :exclamation:' +alias rdplank='rdstatus "plank time!" :evergreen_tree:' +alias rdstop='rdstatus "not making money" :sunglasses:' +alias rdstop2='rdstatus "probably riding" :man-biking:' +alias rdmeal='rdstatus "so hungry..." :hamburger:' +alias rdturbo='rdstatus "ZOOOM" :turbo:' +alias rdsuper='rdstatus "AAAAAAAAAAAAHHHHHHHHH" :gohan:' +alias rdmeeting='rdstatus "afk" :necktie:' +alias rdbudget='rdstatus "did somebody say skee-ball??" :scales:' +alias rdcheese='rdstatus "only the most important things on my mind" :cheese_wedge:' +alias rdfoos='rdstatus "I will defeat Mike... someday..." :soccer:' +alias rdlax='rdstatus "BELAAAAAAAX" :exploding_head:'