aboutsummaryrefslogtreecommitdiffstats
path: root/.config/init/funcs/spam
blob: 77fa8726333957ef02f5dba1c22d9bf5054e8242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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