1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

43183: fix '_ttys -o' and use it in _gdb/_pgrep

This commit is contained in:
Jun-ichi Takimoto 2018-07-19 17:26:11 +09:00
parent 71bc1296ed
commit 218a7e324d
4 changed files with 8 additions and 4 deletions

View file

@ -5,12 +5,12 @@ local cur="$words[CURRENT]" prev w list ret=1 expl
[[ "$PREFIX" = --* ]] &&
_arguments -- '*=(CORE|SYM)FILE:core file:_files' \
'*=EXECFILE:executable:_files -g \*\(-\*\)' \
'*=TTY:terminal device:_ttys' && return 0
'*=TTY: :_ttys -o' && return 0
if compset -P '-(cd|directory)='; then
_files -/
elif compset -P '-tty='; then
_wanted devices expl 'terminal device' _ttys
_ttys -o
elif compset -P '-(exec|se)='; then
_description files expl executable
_files "$expl[@]" -g '*(-*)'