From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17743 invoked by alias); 9 Nov 2010 12:44:29 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15527 Received: (qmail 8490 invoked from network); 9 Nov 2010 12:44:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.171 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: <20101109103825.GA20129@trustfood.org> References: <20101109103825.GA20129@trustfood.org> From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Tue, 9 Nov 2010 13:44:09 +0100 Message-ID: Subject: Re: using completion rules of another application To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 2010/11/9 Eric Smith : > 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 > > I want to have the completions that `which' would have. > > How would I do this? compdef whichv=3Dwhich Best regards, --=20 J=C3=A9r=C3=A9mie