Faster and more reliable method of retrieving the TTY file descriptor.

ghost-420 2020-03-09 10:33:06 -07:00
parent a2f40c5b61
commit 138991f150

@ -20,7 +20,7 @@ You can start sway automatically without a login manager, for example, by adding
```bash
# If running from tty1 start sway
if [ "$(tty)" = "/dev/tty1" ]; then
if [ "$TTY" = "/dev/tty1" ]; then
exec sway
fi
```