added other programs
This commit is contained in:
parent
7045e10ad2
commit
f59fc17486
16
shell.nix
16
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue