Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: using completion rules of another application
- X-seq: zsh-users 15526
- From: Roy Zuo <roylzuo@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: using completion rules of another application
- Date: Tue, 9 Nov 2010 11:51:54 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:x-pgp-key-id:user-agent; bh=LZOafumTxKacRwNhsfY3W8CCaFMqG41wIXSPds1SBCk=; b=R8/1gXYxy9wUuKrTAGJQSQn3c2SX+CUgk9R/qy7+MIPox3fkZnqkXjMjJX5EJyDPq6 wKkwcoh5RphG93NxPFqjcXVdy/GWmM4bbgrKKZrM+ZrDt5js106Y5mzAkqE712uaJ7CQ LuiQ3OsdkL0AwEbm09lBhjwhaSPEyO6biQRBs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :x-pgp-key-id:user-agent; b=VQv0NL+9DiTJr9RzuMFh9n6wZl5ob6oXpWBueIK5///Ndp6peEYuZCrnSWy9dBQ31v aJqALoYOwx1TTp73LmSW3nysrslR+xxZtdhZjsbfs6Lg/IwToRIwsrEM2qkyroGMkM91 AbKAxKrXEBI0hgaJrllYm8GvYpc8wewtF723E=
- In-reply-to: <20101109103825.GA20129@xxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20101109103825.GA20129@xxxxxxxxxxxxx>
Hi,
Why not use this instead?
vim =comm<tab>
Roy
On Tue, Nov 09, 2010 at 11:38:25AM +0100, Eric Smith wrote:
> Hi
>
> If I save a command like,
> echo "vim $(which $1)">bin/whichv
> (find the pathname of an executable with builtin `which'
> and then edit that pathname)
>
> Now at the command line I want to type
> $ bin/whichv comm<tab>
>
> I want to have the completions that `which' would have.
>
> How would I do this?
> --
> - Eric Smith
>
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author