From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10631 invoked from network); 29 Nov 2004 20:04:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Nov 2004 20:04:22 -0000 Received: (qmail 6463 invoked from network); 29 Nov 2004 20:04:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Nov 2004 20:04:17 -0000 Received: (qmail 23717 invoked by alias); 29 Nov 2004 20:03:23 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8242 Received: (qmail 23691 invoked from network); 29 Nov 2004 20:03:21 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 Nov 2004 20:03:21 -0000 Received: (qmail 4369 invoked from network); 29 Nov 2004 20:02:22 -0000 Received: from moonbase.zanshin.com (64.84.47.139) by a.mx.sunsite.dk with SMTP; 29 Nov 2004 20:02:20 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.13.1/8.13.1) with ESMTP id iATK2CPU014174 for ; Mon, 29 Nov 2004 12:02:14 -0800 Date: Mon, 29 Nov 2004 12:02:11 -0800 (PST) From: Bart Schaefer Reply-To: zsh-users@sunsite.dk To: zsh-users@sunsite.dk Subject: Re: Edit result of last command In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 On Mon, 29 Nov 2004, zzapper wrote: > say I've done a command a find/ls whatever [...] > This does the trick, but how would you zedii do it? Don't you remember the "Tip of the day: previous command output" thread from back in August? keep *add* vi $kept or find . -name '*add*' -print | keep vi $kept or any one of several completion-based variants also in that thread. I also have this pair of keybindings: bindkey "^[f" forward-word bindkey -s "^[v" '^E)^Avi $(^[f" which means I scroll back in the history to the command I want to capture ls *add* then type esc-v and end up with vi $(ls *add*) ^ with the cursor here, so I can modify the options (add -l to grep, or remove -l from ls, etc.).