diff --git a/shell.nix b/shell.nix index 7d54288..670a2c0 100644 --- a/shell.nix +++ b/shell.nix @@ -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