11 # Reattach to terminal
13 # Check if can reattach to terminal in any way
14 if [[ ! -c /dev/tty && ! -t 2 ]]; then
15 echo "No terminal available (no /dev/tty and no terminal at stderr)"
19 if test_fd0 2>/dev/null; then
26 if [[ ! -c /dev/tty ]]; then
37 (( restore == 1 )) && exec <&-
38 (( restore == 2 )) && exec <&$FD && exec {FD}<&-
40 # vim: set filetype=zsh: