Compare commits

..

No commits in common. "4b66ad3583c741835e835e8c381ab7b1194d19ea" and "11b0a1d015a52bd3ff9d0fbd6f634829e505fb2a" have entirely different histories.

View file

@ -11,7 +11,7 @@ pkgs.mkShell {
]; ];
shellHook = '' shellHook = ''
STIME=60 STIME=5
programs="cmatrix cbonsai nyancat fortuneCow" programs="cmatrix cbonsai nyancat fortuneCow"
trap 'stty sane; tput cnorm; clear' EXIT trap 'stty sane; tput cnorm; clear' EXIT
@ -22,10 +22,8 @@ pkgs.mkShell {
tput sgr0 tput sgr0
case "$choice" in case "$choice" in
cbonsai) cbonsai)
cbonsai -l -t 1 & pid=$! cbonsai -t .2
( sleep "$STIME" && kill $pid ) & watcher=$! sleep "$STIME"
wait $pid 2>/dev/null
kill $watcher 2>/dev/null || true
;; ;;
cmatrix) cmatrix)
bash -c "cmatrix -u 4 & pid=\$!; sleep $STIME; kill -INT \$pid; wait \$pid" bash -c "cmatrix -u 4 & pid=\$!; sleep $STIME; kill -INT \$pid; wait \$pid"