# stdin is tty  { [ -t 0 ]; }
# stdout is tty { [ -t 1 ]; }
export TTY
is_tty() { [ -t 1 ] && ! test "${TERM}" = 'dumb'; }
is_tty "$@"
