From 38bb84d97577fdfc359ba0261daea730a0cfb405 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 8 May 2000 08:58:37 +0000 Subject: 11194, 11200, 11214 --- Completion/User/_configure | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'Completion/User') 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' -- cgit v1.2.3