From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17803 invoked by alias); 12 Aug 2010 10:08:50 -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: 15266 Received: (qmail 16892 invoked from network); 12 Aug 2010 10:08:47 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Michel Cc: zsh-users@zsh.org Subject: Re: Completion on simple commande In-Reply-To: (Michel's message of "Thu, 12 Aug 2010 11:11:11 +0200") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Date: Thu, 12 Aug 2010 11:56:31 +0200 Message-ID: <87pqxo5f3k.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: 430444 Michel wrote: > I use an zsh function to launch the graphical application. But I don't > know how have the completion on my function. > > My function is : > function start (){ > $@ > /dev/null 2> /dev/null & > } You probably want to use "$@" (double-quoted) here. > And I want can type : > start fire > > To launch firefox. In bash I know the "complete" commande but I don't > know the zsh metode. compdef _precommand start That will make the command-specific version work, too. Regards, Frank -- In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925