From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24703 invoked by alias); 29 Jan 2016 12:36:27 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37835 Received: (qmail 12417 invoked from network); 29 Jan 2016 12:36:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=vplvftjxGhdHzxhewjmPQVXdPet25JKi3JIsddIznOQ=; b=EIXFL153Tba9RU96sBV9a540JK0ERO/qckHUluF2ash7c0o3Fj1JYJsrVYn3zEFa0k WncmCc15X7/R1Sq1kiUloFNAM4TkrpCcDzob3O/EQ7mDgp/jAXMfM0bUUx8qhvMMVAnd h+hyOKDnJYDal6kkirReQgfDlf7McTaEvP/O8VyzF4jTGy3cZoUX5hZ/PZ50nG1r+K9S cywvqP2zaSoat+SHlwpoQ28dU5iL9hNwC5H29NkyZ1kqWCgXiaNes1ZIUvhUV+sVC4FZ 2I1XGiE1ua+mE7CO2qs6abQC3YHwQWK15079pWc1c2UlQgCXnuM0ZLbdJ63IPOMwClFc /7gg== X-Gm-Message-State: AG10YOSEXhKfxDfaMEn2VvBTmri73AA65YwCyQr3EcpgBc1P1p6kr8mq4h0ZbxGYPlR/cOMtiDMuQbVlRgEHgA== X-Received: by 10.50.122.38 with SMTP id lp6mr9538524igb.12.1454070982642; Fri, 29 Jan 2016 04:36:22 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20160129091907.GC28305@tarsus.local2> References: <20160129091907.GC28305@tarsus.local2> From: Silvio Ricardo Cordeiro Date: Fri, 29 Jan 2016 10:35:43 -0200 Message-ID: Subject: Re: Zstyle command completion does not work for some executables To: Daniel Shahaf Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=089e01538360661384052a78488a --089e01538360661384052a78488a Content-Type: text/plain; charset=UTF-8 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 : > 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 --089e01538360661384052a78488a--