added other programs

This commit is contained in:
Michael 2025-08-11 01:40:01 -04:00
parent 7045e10ad2
commit f59fc17486

View file

@ -8,12 +8,15 @@ pkgs.mkShell {
pkgs.fortune
pkgs.nyancat
pkgs.coreutils
pkgs.sl
pkgs.asciiquarium
pkgs.pv
];
shellHook = ''
LAST=""
STIME=60
programs="cmatrix cbonsai nyancat fortuneCow otherCow"
STIME=120
programs="cmatrix cbonsai nyancat fortuneCow otherCow train fish"
trap 'stty sane; tput cnorm; clear' EXIT
@ -48,6 +51,15 @@ pkgs.mkShell {
fortune | cowsay --random
sleep "$STIME"
;;
train)
sl
;;
fish)
asciiquarium & pid=$!
( sleep "$STIME" && kill $pid ) & watcher=$!
wait $pid 2>/dev/null
kill $watcher 2>/dev/null || true
;;
esac
sleep 1
done