Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use $TTY instead of $(tty); it's faster and more reliable
`tty` command infers the current TTY from file descriptor 0. `$TTY` gives current TTY directly. The latter works even when file descriptor 0 is redirected. It's also over 1000 times faster.
- Loading branch information