dotfiles/home/private_dot_config/zsh/functions/executable_is-tty

12 lines
126 B
Text
Raw Permalink Normal View History

2023-02-17 09:26:31 -06:00
##? check if running in a tty
case $(tty) in /dev/tty[0-9]*)
return 0
;;
*)
return 1
;;
esac
# vim: ft=zsh sw=2 ts=2 et