It's still kinda shit innit?
This commit is contained in:
parent
e970218365
commit
c6ed1f6365
45
shell.nix
Normal file
45
shell.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue