From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12793 invoked from network); 17 Jun 2000 03:06:36 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Jun 2000 03:06:36 -0000 Received: (qmail 698 invoked by alias); 17 Jun 2000 03:06:09 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3179 Received: (qmail 691 invoked from network); 17 Jun 2000 03:06:08 -0000 From: "Bart Schaefer" Message-Id: <1000617030552.ZM4725@candle.brasslantern.com> Date: Sat, 17 Jun 2000 03:05:52 +0000 In-Reply-To: <20000617040821.A4182@br-online.de> Comments: In reply to Andy Spiegl "completing from history" (Jun 17, 4:08am) References: <20000617040821.A4182@br-online.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Andy Spiegl , ZSH User List Subject: Re: completing from history MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 17, 4:08am, Andy Spiegl wrote: } Subject: completing from history } } On Adam Spier's zsh page (http://www.new.ox.ac.uk/~adam/computing/zsh/) I } found these lines in his .zsh } # {{{ Simulate my old dabbrev-expand 3.0.5 patch } zstyle ':completion:*:history-words' stop 'verbose' } zstyle ':completion:*:history-words' remove_all_dups 'yep' } # }}} } } But I must admit that I don't understand what I can do with it. If you've got 3.1.9 installed, you can type or to invoke the _history-complete-older or _history-complete-newer bindings. The above styles control whether the search cycles through the history and whether it ever offers duplicate words -- except that it should be `remove-all-dups' with hyphens, not underscores, and the value `yep' does not work, it has to be `yes' `true' `1' or `on'. So Adam must not be using the distributed version of _history_complete_word. Oh, you do need to have run "compinit" to enable those bindings. You can also add _history to your completer style like this: zstyle ':completion:*' completer _complete _history to have the history searched when you hit TAB and regular completion does not find anything. (Or put it in front of _complete to have the history tried first, but that's probably not what you want.) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net