From f59fc174864df89af54af5fab18ea4f1f46781a9 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 11 Aug 2025 01:40:01 -0400 Subject: [PATCH] added other programs --- shell.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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