From 4cd93b09b3a179515630114078739564a35af38d Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 19 Feb 2017 03:47:19 -0700 Subject: move remaining funcs from .zshrc everything should be modular now also, cleaned up make-gif to properly parse arguments and check things --- .config/init/funcs/spam | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 .config/init/funcs/spam (limited to '.config/init/funcs/spam') 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 -- cgit v1.2.3