updated bash with some fun things. automated slack updates, nethack, etc

This commit is contained in:
Wryn Wagner 2019-08-20 17:07:55 -06:00
parent 6479d6c34f
commit 6d26e4d26b
3 changed files with 26 additions and 1 deletions

View File

@ -17,4 +17,7 @@ function pika {
imgcat $IMAGE imgcat $IMAGE
echo; echo;
} }
alias pikabox='while true; do reset; pika; sleep 120; done' alias pikabox='while true; do reset; pika; sleep 120; done'
alias netrogue='nethack -u "w0ryn-rog-hum-cha-mal"'

View File

@ -1,18 +1,21 @@
#!/bin/bash #!/bin/bash
function planktimer() { function planktimer() {
# dependencies: 'say' 'termdown' # dependencies: 'say' 'termdown' '.wryn/bash/rentdynamics'
message='Plank Time' message='Plank Time'
while true; while true;
do do
termdown 1h30m; termdown 1h30m;
clear; clear;
figlet "$message" | lolcat; figlet "$message" | lolcat;
# update slack status
rdplank;
say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "$message"; say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "$message";
read -n 1; read -n 1;
if [ $1 ]; then if [ $1 ]; then
termdown $1; termdown $1;
say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "done"; say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "done";
fi fi
rdstart;
done done
} }

View File

@ -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!"; 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:'