diff options
author | katherine <shmibs@shmibbles.me> | 2017-02-19 03:47:19 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2017-02-19 03:47:19 -0700 |
commit | 4cd93b09b3a179515630114078739564a35af38d (patch) | |
tree | 9d4b873cca07f62f457acd82df0c433bd2af1535 /.config/init/funcs/spam | |
parent | 01cc1fd9f8d3484451fb33dc06d3eb76622dd7e0 (diff) | |
download | dotfiles-4cd93b09b3a179515630114078739564a35af38d.tar.gz |
move remaining funcs from .zshrc
everything should be modular now
also, cleaned up make-gif to properly parse arguments and check things
Diffstat (limited to '.config/init/funcs/spam')
-rwxr-xr-x | .config/init/funcs/spam | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/init/funcs/spam b/.config/init/funcs/spam new file mode 100755 index 0000000..77fa872 --- /dev/null +++ b/.config/init/funcs/spam @@ -0,0 +1,25 @@ +#!/usr/bin/env zsh +# um... + +if [[ $# -eq 0 ]]; then + local spam="┐(笑)_(笑)┌" +else + local spam="$@" +fi + + +while true; do + echo -en "\e[$((RANDOM%2));$((RANDOM%8+30))m" + + for i in {1..${#spam}}; do + if [[ $((RANDOM%2)) -eq 1 ]]; then + echo -n $spam[$i] | tr '[:lower:]' '[:upper:]' + else + echo -n $spam[$i] + fi + done + + for i in {1..$((RANDOM%20))}; do + echo -n " " + done +done |