From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29374 invoked by alias); 2 Jan 2013 00:08:30 -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: 17521 Received: (qmail 22369 invoked from network); 2 Jan 2013 00:08:28 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130101160801.ZM3720@torch.brasslantern.com> Date: Tue, 01 Jan 2013 16:08:01 -0800 In-reply-to: <20130101224452.GD2054@localhost.localdomain> Comments: In reply to Han Pingtian "How to enable history completion in command line?" (Jan 2, 6:44am) References: <20130101224452.GD2054@localhost.localdomain> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-user Subject: Re: How to enable history completion in command line? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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? Completion is extremely word-oriented, so using it to retrieve anything that has whitespace and other syntactic separators is difficult. There are tricks you can do with "compadd -Q -U" to cause multi-word strings to be inserted onto the command line, but attempting to do any sort of menu completion (with limited exceptions for menu selection) will fail because completion will begin to limit itself to the single word nearest the cursor as soon as the first replacement is done.