diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2018-07-19 17:26:11 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2018-07-19 17:26:11 +0900 |
commit | 218a7e324dc52e5b9f2e724c1463fb0643a6036f (patch) | |
tree | eb940be468f2ac54ae24ce6c56c6756b1ede6b6e /Completion/Unix/Command/_gdb | |
parent | 71bc1296edfc548751354f4bf5832aba3fcd0b95 (diff) | |
download | zsh-218a7e324dc52e5b9f2e724c1463fb0643a6036f.tar.gz zsh-218a7e324dc52e5b9f2e724c1463fb0643a6036f.tar.xz zsh-218a7e324dc52e5b9f2e724c1463fb0643a6036f.zip |
43183: fix '_ttys -o' and use it in _gdb/_pgrep
Diffstat (limited to 'Completion/Unix/Command/_gdb')
-rw-r--r-- | Completion/Unix/Command/_gdb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_gdb b/Completion/Unix/Command/_gdb index 510e6f1fa..18f797633 100644 --- a/Completion/Unix/Command/_gdb +++ b/Completion/Unix/Command/_gdb @@ -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 '*(-*)' |