From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29541 invoked by alias); 24 Jun 2012 08:46:28 -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: 17161 Received: (qmail 24472 invoked from network); 24 Jun 2012 08:46:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=mesmtp; bh=jKzAOELqConzpxVdUdmCcO/18c8=; b=aJakD eNhD8n3ptGD1GKMlkZwfGeA5mKz/Ge2Wf6FtGQiwJj9gDn9+cFHFoC8ikIoClmoQ QN70QBeGEQrSy02Ntxok2Ws3oxKXLIOvfVvJYxXa6OG/IWopU3GZBt/plsp+4XVx vYQEdx3rl7jBgWGlPkdTGP91UAWKgHtJdDtvgI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=smtpout; bh=jKzAOELqConzpxVdUdmCcO/18c8=; b=YIMa kQzOT/kQM5tJl6mgyTDXskupQEnZQ/iFWATk+v5ReN1uk8/DcuTBdXCxk8zG8yl0 2ka8nUCjbM5+wk/gTdo0c2cWSpcX+BSvQmFq936wzktaEyfnzjoYa0A0duP/jBwR M3ujeFaIW2PJ6jrA12qC0FefMzkwDibAGTcwV/I= X-Sasl-enc: iJmPwdsYYFKs9AcPKwkNglV+iuKHeGHn6uu47f5zJvdj 1340527194 Date: Sun, 24 Jun 2012 09:39:47 +0100 From: Daniel Shahaf To: Mikael Magnusson Cc: Bart Schaefer , Matt Woodson , zsh-users@zsh.org Subject: Re: known hosts tab completion Message-ID: <20120624083947.GA2768@tarsus.local2> References: <120623111812.ZM13306@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mikael Magnusson wrote on Sat, Jun 23, 2012 at 20:28:00 +0200: > On 23 June 2012 20:18, Bart Schaefer wrote: > > On Jun 22,  2:48pm, Matt Woodson wrote: > > } > > } Let's say I have these hosts: > > } > > } host01.stage.example.com > > } host02.stage.example.com > > } host01.prod.example.com > > } host02.prod.example.com > > } > > } now, in my prompt, I will type: > > } > > } $ ssh hos > > } > > } zsh will show me: > > } > > } $ ssh host..example.com > > } > > } with the cursor right after "host" and shows me a menu with the host > > } names in it. I like the menu showing me hostnames, I just don't want > > } it to complete everything. > > > > This similar to the confusion about the default matcher-list that was > > discussed about a month ago in the "completion oddity" thread (starts > > with zsh-users/17099 if you want to check the archives). > > > > In this case, though, the default matcher-list does not include the > > dot character, so you must have a zstyle that does.  Disable it for > > this context and you should be able to get the behavior you want. > > The default matcher-list for host completion does have the . in it, or > rather it uses a hardcoded compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* > r:|=*', as do a couple of other completions. zsh -f gives me the > "magic" behaviour with just compinit, and I don't think you can I get the same behaviour I describe in the original post under 'zsh -f' with compinit, too. > override compadd -M 'foo' provided stuff with styles. > > -- > Mikael Magnusson