From 3c3ffa433dca8c6c396d1cca734bc349a91b9797 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 4 Feb 2000 12:14:06 +0000 Subject: zsh-workers/9562 --- Completion/User/_gdb | 8 ++++---- Completion/User/_ssh | 4 ++-- Completion/User/_strip | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'Completion/User') diff --git a/Completion/User/_gdb b/Completion/User/_gdb index a095370ab..283aff631 100644 --- a/Completion/User/_gdb +++ b/Completion/User/_gdb @@ -4,7 +4,7 @@ local cur="$words[CURRENT]" prev w list ret=1 expl [[ "$PREFIX" = --* ]] && _arguments -- '*=(CORE|SYM)FILE:core file:_files' \ - '*=EXECFILE:executable:_files \*\(\*\)' \ + '*=EXECFILE:executable:_files \*\(-\*\)' \ '*=TTY:terminal device:compadd /dev/tty\*' && return 0 if compset -P '-(cd|directory)='; then @@ -13,7 +13,7 @@ elif compset -P '-tty='; then _wanted devices expl 'terminal device' && compadd "$expl[@]" - /dev/tty* elif compset -P '-(exec|se)='; then _description files expl executable - _files "$expl[@]" -g '*(*)' + _files "$expl[@]" -g '*(-*)' elif compset -P '-(symbols|core|command)='; then _files elif [[ "$PREFIX" = -* ]]; then @@ -30,7 +30,7 @@ else (-d) _files -/ && return 0 ;; (-[csx]) _files && return 0 ;; (-e) _description files expl executable - _files "$expl[@]" -g '*(*)' && return 0 ;; + _files "$expl[@]" -g '*(-*)' && return 0 ;; (-b) _wanted -V values expl 'baud rate' && compadd "$expl[@]" 0 50 75 110 134 150 200 300 600 1200 1800 \ 2400 4800 9600 19200 38400 57600 115200 \ @@ -47,6 +47,6 @@ else _alternative 'files:: _files' "processes:: _pids -m ${w[1]:t}" else _description files expl executable - _files "$expl[@]" -g '*(*)' + _files "$expl[@]" -g '*(-*)' fi fi diff --git a/Completion/User/_ssh b/Completion/User/_ssh index 9b07a62cf..aa4ffb2f6 100644 --- a/Completion/User/_ssh +++ b/Completion/User/_ssh @@ -91,7 +91,7 @@ _ssh () { ;; *(#i)xauthlocation*) _description files expl 'xauth program' - _files "$expl[@]" -g '*(*)' && ret=0 + _files "$expl[@]" -g '*(-*)' && ret=0 ;; esac else @@ -155,7 +155,7 @@ _ssh () { '-c[select encryption cipher]:encryption cipher:(idea des 3des blowfish arcfour tss none)' \ '-P[specify port on remote host]:port number on remote host:' \ '-i[select identity file]:SSH identity file:_files' \ - '-S[specify path to ssh]:path to ssh:_files -g \*\(\*\)' \ + '-S[specify path to ssh]:path to ssh:_files -g \*\(-\*\)' \ '-o[give SSH options]:options:->options' \ '-p[preserve modification times]' \ '-r[recursively copy directories]' \ diff --git a/Completion/User/_strip b/Completion/User/_strip index 378eafe99..d7d8aabdd 100644 --- a/Completion/User/_strip +++ b/Completion/User/_strip @@ -3,4 +3,4 @@ local expl _description files expl executable -_files "$expl[@]" -g '*(*)' +_files "$expl[@]" -g '*(-*)' -- cgit 1.4.1