bin/moo @ 4e1d6d6873fe

More
author Steve Losh <steve@stevelosh.com>
date Wed, 08 May 2024 10:22:18 -0400
parents 93292b5dede0
children (none)
#!/usr/bin/env bash

COWS=("b" "d" "g" "p" "s" "t" "w" "y")
COW=${COWS[$RANDOM % ${#COWS[@]}]}

PROGS=("cowsay" "cowthink")
PROG=${PROGS[$RANDOM % ${#PROGS[@]}]}

COLORS=("gay" "metal")
COLOR=${COLORS[$RANDOM % ${#COLORS[@]}]}

clear
toilet -t -k -F metal:$COLOR -f future "$@" | $PROG -n -$COW
read