From: Frank Terbeck <ft@bewatermyfriend.org>
To: Michel <michel.barret@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: Completion on simple commande
Date: Thu, 12 Aug 2010 11:56:31 +0200 [thread overview]
Message-ID: <87pqxo5f3k.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <AANLkTinxZLq8ao5zGcKA_L2ASRzgNEGNjKo3rW0VC3Cn@mail.gmail.com> (Michel's message of "Thu, 12 Aug 2010 11:11:11 +0200")
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<tab>
>
> 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
prev parent reply other threads:[~2010-08-12 10:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 9:11 Michel
2010-08-12 9:56 ` Peter Stephenson
2010-08-12 11:24 ` Michel
2010-08-12 9:56 ` Frank Terbeck [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pqxo5f3k.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=michel.barret@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).