ponysay/extras/lightweight-ponies/lightweight-ponies
Pablo Lezaeta 4315e59386 Stupid permission and stupid btrfs snapshots
Signed-off-by: Pablo Lezaeta <prflr88@gmail.com>
2014-06-10 01:35:58 -04:00

9 lines
213 B
Bash

#!/bin/sh
dir="/usr/share/ponysay/ttyponies"
if [ -n "${DISPLAY}" ]; then
dir="/usr/share/ponysay/ponies"
fi
find "${dir}" | grep '\.pony$' | shuf | head -n 1 | xargs cat | sed -e ':a;N;$!ba;s:\$[^$]*\$::g'