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