Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: using completion rules of another application
- X-seq: zsh-users 15527
- From: JÃrÃmie Roquet <arkanosis@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: using completion rules of another application
- Date: Tue, 9 Nov 2010 13:44:09 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Qcw/MoCOn4O8ho40usTqUWtbKUvN+gPWckU0Zix/AuA=; b=jBisCoQMr/DhcErcXgFZGVAOuivUizYmimO3tHNhqSTfWthsSg2NO367WKhIl5RTrk jp8XLAQIYepyBfFOW14Sxm5gVJox6dd0ceXgxcTTqteyhjl23Gd/PRjAJqv++YQOhdI0 MODPICFmBlyUtehkp2AfvCE/AqSShhKhhXA0g=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=qAUdSB8X7j337Z4EsuVIf57vOT1M9JukeJMOP9jg6ZIPDLQi25VqqkqiC2EanInl9c bbmbRNACmMS7cqqC5zHxqTIVwHCgD5C+1/raihg7374V4YAqzWf0jLxY866TEHFxkm6w nttUEzMp+5d54tCvb2ekeXPi3TGlbRQ7DHm5k=
- 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>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20101109103825.GA20129@xxxxxxxxxxxxx>
Hi,
2010/11/9 Eric Smith <es@xxxxxxxxxxxx>:
> 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?
compdef whichv=which
Best regards,
--
JÃrÃmie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author