environment: apply stty -ixon only to tty (#1771)

This commit is contained in:
Roman Perepelitsa 2019-12-28 00:22:15 +01:00 committed by Kaleb Elwert
parent e86200e7aa
commit 7c94154dda

View file

@ -39,7 +39,7 @@ setopt RC_QUOTES # Allow 'Henry''s Garage' instead of 'Henry'\''s Gar
unsetopt MAIL_WARNING # Don't print a warning message if a mail file has been accessed.
# Allow mapping Ctrl+S and Ctrl+Q shortcuts
(( $+commands[stty] )) && stty -ixon
[[ -n ${TTY:-} && $+commands[stty] == 1 ]] && stty -ixon <$TTY >$TTY
#
# Jobs