diff options
Diffstat (limited to 'Completion/Unix/Type/_ttys')
-rw-r--r-- | Completion/Unix/Type/_ttys | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_ttys b/Completion/Unix/Type/_ttys index 7408395c8..3c40466cb 100644 --- a/Completion/Unix/Type/_ttys +++ b/Completion/Unix/Type/_ttys @@ -12,7 +12,7 @@ local stripdev optdev open zparseopts -D -K -E d=stripdev D=optdev o=open if [[ -n $open ]]; then - ttys=( ${(u)${(f)"$(_call_program open-ttys ps -ao tty=)"}%% *} ) + ttys=( ${(u)${${(f)"$(_call_program open-ttys ps -Ao tty=)"}:#\?*}%% *} ) _description open-ttys expl 'open tty' else ttys=( /dev/tty?*(N) /dev/pts/^ptmx(N) ) |