It's still kinda shit innit?

This commit is contained in:
Michael Booser 2025-08-10 00:35:33 -04:00
parent e970218365
commit c6ed1f6365

45
shell.nix Normal file
View file

@ -0,0 +1,45 @@
{pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.cbonsai
pkgs.cmatrix
pkgs.neo-cowsay
pkgs.fortune
pkgs.nyancat
pkgs.coreutils
];
shellHook = ''
STIME=5
programs=("cbonsai" "cmatrix" "nyancat" "fortuneCow")
while true; do
choice=$(shuf -n 1 -e "cbonsai" "cmatrix" "nyancat" "fortuneCow")
clear
tput sgr0
case "$choice" in
cbonsai)
timeout "$STIME" cbonsai -t .2 -l
reset
clear
;;
cmatrix)
timeout "$STIME" cmatrix
reset
clear
;;
nyancat)
timeout "$STIME" nyancat
reset
clear
;;
fortuneCow)
fortune | cowsay
sleep "$STIME"
clear
;;
esac
done
'';
}