fix: script -> ttydestroyer bc /usr/bin/script

This commit is contained in:
AngeD 2022-10-21 09:25:24 +02:00
parent 2d2467d3d3
commit eef37ed07b

19
bin/ttydestroyer Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
usage() {
echo "Usage: $0 /dev/pts/{tty_nb}"
exit 0
}
if [ -z "$1" ]; then
set "$(tty)"
elif ! [ -w "$1" ]; then
usage
fi
(set -e
asciiquarium &
cmatrix -ab &
while true; do sl; done &
) | lolcat > "$1"