From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: Problem with _configure argument autocomplete
Date: Mon, 14 Dec 2009 20:46:22 +0000 [thread overview]
Message-ID: <20091214204622.31a17e90@pws-pc> (raw)
In-Reply-To: <14d6ea0c0912131704h74b9936en9f1746397a5c5359@mail.gmail.com>
On Sun, 13 Dec 2009 20:04:54 -0500
Andrew Ryan <nerdrew@gmail.com> wrote:
> The mod_wsgi configure script has the following options (taken from
> ./configure -h):
>
> Optional Packages:
> --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
> --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
> --with-apxs=NAME name of the apxs executable [apxs]
> --with-python=NAME name of the python executable [python]
>
>
> The "--with-python=NAME" option does not autocomplete the path
> following the equal sign.
>
> Adding the following to the end of _configure makes it autocomplete correctly:
>
> '*=NAME*:directory:_files -/'
Surely that should be a regular file (if not an executable)?
Index: Completion/Unix/Command/_configure
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_configure,v
retrieving revision 1.2
diff -u -r1.2 _configure
--- Completion/Unix/Command/_configure 13 May 2007 19:49:00 -0000 1.2
+++ Completion/Unix/Command/_configure 14 Dec 2009 20:45:23 -0000
@@ -6,4 +6,6 @@
(#s)--with- --without-
(#s)--without- --with-)' \
'*=(E|)PREFIX*:prefix directory:_files -/' \
- '*=PROGRAM*:program:_command_names -e'
+ '*=PROGRAM*:program:_command_names -e' \
+ '*=NAME*executable*:program:_command_names -e' \
+ '*=NAME*:file:_files'
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
prev parent reply other threads:[~2009-12-14 21:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-14 1:04 Andrew Ryan
2009-12-14 20:46 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091214204622.31a17e90@pws-pc \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).