Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zstyle command completion does not work for some executables
- X-seq: zsh-workers 37835
- From: Silvio Ricardo Cordeiro <silvioricardoc@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Zstyle command completion does not work for some executables
- Date: Fri, 29 Jan 2016 10:35:43 -0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=vplvftjxGhdHzxhewjmPQVXdPet25JKi3JIsddIznOQ=; b=YHa+AQh1ysdjIKkotO0iRR7syotkaKdBI8Tk+CcQR2GFy0mgfbQLC+L1F8p1e6LYv4 tmiMv3euLDKTCaOhn2kFTxi9ye9PjzFZozCeX6hSefLSqexhVZr5SdTMruHtZ+CaneO5 Vg4rJPr6t8Zxv893EpBNsgcItlomYWPNpYSB4QGQHBc7KXRLaRMHqW3+E79NzEUhu/ZE qAYeag5PfK48mQtfvk9WQQ4QxnffXDzOYml6H1tihf9CIlUkgNPePn7NlbfslHuLmKsJ qGFcILyli/PZVx/OJdLU9NZEirOaLSWwEN4G3Kg1WUnx+ZTyzdhtgosXnrpqIbBitCYd PpDg==
- In-reply-to: <20160129091907.GC28305@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CABq1aV__gsNumkqqdsnfH2sORfM9SuKo4wAgoE70i9SQ+Xu2pA@mail.gmail.com> <20160129091907.GC28305@tarsus.local2>
For killall & rake, I get "testing" as a suggestion, as I expected. For
the others, nothing happens (they continue trying to complete with
filenames, the default behavior).
Do I have to somehow specify that "this command must obey the command
style" for my custom commands?
Thanks,
2016-01-29 7:19 GMT-02:00 Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>:
> Silvio Ricardo Cordeiro wrote on Thu, Jan 28, 2016 at 12:52:44 -0200:
> > On an otherwise empty .zshrc:
> >
> > Some completion specifications work normally:
> >
> > > zstyle ':completion:*:*killall*:*' command 'echo testing'
> > > zstyle ':completion:*:*rake*:*' command 'echo testing'
>
> What is happening? What do you want to happen?
>
> The 'command' style isn't used by all completion functions.
>
> Cheers,
>
> Daniel
>
> > While other completion just do *not* work:
> >
> > > zstyle ':completion:*:*bash*:*' command 'echo testing'
> > > zstyle ':completion:*:*some_file_in_PATH*:*' command 'echo testing'
> >
> > zstyle ':completion:*:*inexistent_executable*:*' command 'echo testing'
> > >
> >
> > Is there any way to debug this kind of behavior? I have tried pressing
> > "^X?", but the output is the same for "killall" and for "bash"...
> >
> > --
> > Silvio Ricardo Cordeiro
>
--
Silvio Ricardo Cordeiro
Messages sorted by:
Reverse Date,
Date,
Thread,
Author