From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22109 invoked by alias); 9 Nov 2010 12:42:09 -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: 15526 Received: (qmail 11828 invoked from network); 9 Nov 2010 12:42:08 -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=-0.5 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.43 as permitted sender) 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= Date: Tue, 9 Nov 2010 11:51:54 +0800 From: Roy Zuo To: Zsh Users Subject: Re: using completion rules of another application Message-ID: <20101109035154.GA4275@Lancelot> Mail-Followup-To: Zsh Users References: <20101109103825.GA20129@trustfood.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20101109103825.GA20129@trustfood.org> X-PGP-Key-ID: 3038867F User-Agent: Mutt/1.5.21 (2010-09-15) Hi, Why not use this instead? vim =comm 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 > > I want to have the completions that `which' would have. > > How would I do this? > -- > - Eric Smith > --