dotfiles/bin/is-tty
2022-05-18 00:21:46 -05:00

8 lines
79 B
Bash
Executable file

#!/bin/sh
case $(tty) in /dev/tty[0-9]*)
exit 0;;
*)
exit 1;;
esac