From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6215 invoked by alias); 14 Mar 2013 12:42:59 -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: 17697 Received: (qmail 29155 invoked from network); 14 Mar 2013 12:42:57 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at de.ibm.com designates 195.75.94.108 as permitted sender) Subject: searching words in history similar to insert-last-word X-KeepSent: 04456934:5C5AA7AE-C1257B2E:0044D95E; type=4; name=$KeepSent To: zsh-users@zsh.org X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: Dominik Vogt Date: Thu, 14 Mar 2013 13:32:28 +0100 X-MIMETrack: Serialize by Router on D06ML035/06/M/IBM(Release 8.5.3FP2 ZX853FP2HF3|December 12, 2012) at 14/03/2013 13:32:29 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-TM-AS-MML: No x-cbid: 13031412-8372-0000-0000-0000056EF2A1 > alt-/ (_history-complete-older) Great, that's almost exactly what I was looking for. Is there a way to get rid of the duplicates though? I get a list of matching words like this: user@machine1 user@machine2 user@machine1 user@machine2 ... instead of just user@machine1 user@machine2 > _insert_next_word () { > zle .insert-last-word 1 -1 > } > zle -N insert-next-word _insert_next_word Perfect, thank you very much. :-) Ciao Dominik ^_^ ^_^