diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2000-05-08 08:58:37 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-05-08 08:58:37 +0000 |
| commit | 38bb84d97577fdfc359ba0261daea730a0cfb405 (patch) | |
| tree | 15222079b6024fea1a2d7636ca023bb2672196e2 /Completion/User | |
| parent | make _expand call _complete when called from _expand_word; add ignore-line st... (diff) | |
| download | zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.tar zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.tar.gz zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.tar.bz2 zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.tar.lz zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.tar.xz zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.tar.zst zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.zip | |
11194, 11200, 11214
Diffstat (limited to 'Completion/User')
| -rw-r--r-- | Completion/User/_configure | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Completion/User/_configure b/Completion/User/_configure index de8d5fba5..e66e06082 100644 --- a/Completion/User/_configure +++ b/Completion/User/_configure @@ -1,12 +1,9 @@ -#defcomp configure +#compdef configure -if [[ $PREFIX = *=* ]]; then - # Complete filenames after e.g. --prefix= - IPREFIX=${PREFIX%%=*}= - PREFIX=${PREFIX#*=} - complist -f -else - # Generate a list of options from configure --help - complist -s '$($COMMAND --help | - sed -n -e '\''s/^ *\(--[-a-z0-9]*\)[ =,].*$/\1/p'\'')' -fi +_arguments -- -i '(--(disable|enable)-FEATURE* --(with|without)-PACKAGE*)' \ + -s '((#s)--disable- --enable- + (#s)--enable- --disable- + (#s)--with- --without- + (#s)--without- --with-)' \ + '*=(E|)PREFIX*:prefix directory:_files -/' \ + '*=PROGRAM*:program:_command_names -e' |
