From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12823 invoked by alias); 12 Nov 2010 18:31:57 -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: 15540 Received: (qmail 12259 invoked from network); 12 Nov 2010 18:31:43 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=sjQrjy2z1PItGc7bFJ0knT7NJlq6wv2YvoAkzB3QZsE=; b=ul8d93YTyES/2rdTTrc7B8YUjnM8RtNNjuvFUatkgf6CTYSbwMIFzA+b0DBh1XUCwt UL/vlsv/LGhTKiBnOEAIQ2OXXyXiNBd7NjSbmBB6Z8bSXEwtwNfnFU13IQzfCscHYpsw iSX+ffZZY21UX39oUflZV/ABF7OkV9En+IJfQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=hk4R9tTr3wyFA4KHNbjYtOnnSK6SCcm0inwG3Iaurvka9xcRwLfXOXpVPz2p2YKTTm OFHj//f3ftkeLjkle0y1NFUHSIYMTw4ObZT/M5TynZHPHYzskHElBHP1pG8Dq8/Xa7EH gisxdxXYoLa5FAgzXoiS5YbdBpQruV/ddybXE= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 12 Nov 2010 15:31:37 -0300 Message-ID: Subject: Re: Zsh completion question From: =?ISO-8859-1?Q?Matias_Gra=F1a?= To: zsh-users@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Nov 12, 2010 at 1:57 PM, Benjamin R. Haskell wrote= : > On Fri, 12 Nov 2010, Volodya Khomchak wrote: > >> Hi, >> >> I have very simple question about Zsh completion. >> Situation is next, I have two commands: >> =A0 - moc >> =A0 - mocp >> >> When I entered `moc` and pressed zsh doesn't propose me to select >> `moc` or `mocp` command, instead of it space is added and now file list = is >> shown as completion variants. >> >> How can I fix it to set it in bash like mode ? > > I was able to reproduce this by setting the zstyle: > > zstyle ':completion:*' accept-exact true > > That style isn't 'true' by default. =A0If you set it intentionally, it so= unds > like you don't actually want it. =A0If something at the system level sets= it > up, you can override it by adding: > > zstyle ':completion:*' accept-exact false > > somewhere in your startup scripts (e.g. ~/.zshrc). > > You can test that it's currently set by looking at the output of: > > zstyle -L ':completion:*' > > -- > Best, > Ben > Ben: sorry; I just sent this email only to you while it was intended for the list. Here it goes again. I get the same behaviour. I don't set zstyle ':completion:*' accept-exact true anywhere I'm aware of. In fact, zstyle -L ':completion:*' does not show this setting. And, when I set it to false, behaviour changes, so it was this option indeed. Best, Mat=EDas