bin/moo @ 188c44d7247c

Better st-edit behavior
author Steve Losh <steve@stevelosh.com>
date Thu, 14 Mar 2019 18:51:47 -0400
parents 80f5ec3932ae
children 93292b5dede0
#!/usr/bin/env bash

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

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

toilet -t -k -F gay:crop -f calvins "$@" | $PROG -n -$COW