From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24397 invoked by alias); 2 Jan 2013 03:30:05 -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: 17522 Received: (qmail 20284 invoked from network); 2 Jan 2013 03:29:53 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at linux.vnet.ibm.com does not designate permitted sender hosts) Date: Wed, 2 Jan 2013 11:19:35 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: Re: How to enable history completion in command line? Message-ID: <20130102031934.GE2054@localhost.localdomain> References: <20130101224452.GD2054@localhost.localdomain> <130101160801.ZM3720@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <130101160801.ZM3720@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13010203-3620-0000-0000-000000C8F221 On Tue, Jan 01, 2013 at 04:08:01PM -0800, Bart Schaefer wrote: > On Jan 2, 6:44am, Han Pingtian wrote: > } > } How can I enable history completion in the command line? That's typing > } a command then hit some key to let zsh completes the whole command > } line based on history. > > Are you sure you're not looking for history-beginning-search-backward? > Thanks, Bart and Karoly. history-beginning-search-backward works just fine. I was just curious to the feature about '_history_complete_word' discussed in previous letter. Now it looks like it will show a menu to the user for selection. This isn't really useful I think. I'm going to bind up-arrow and down-arrow to 'history-beginning-search-backward' and 'history-beginning-search-forward' respectively.