From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20202 invoked from network); 29 Feb 2008 19:42:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Feb 2008 19:42:42 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 32650 invoked from network); 29 Feb 2008 19:42:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Feb 2008 19:42:22 -0000 Received: (qmail 1674 invoked by alias); 29 Feb 2008 19:42:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12662 Received: (qmail 1655 invoked from network); 29 Feb 2008 19:42:11 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Feb 2008 19:42:11 -0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by bifrost.dotsrc.org (Postfix) with ESMTP id A58558026E0B for ; Fri, 29 Feb 2008 20:42:05 +0100 (CET) Received: by an-out-0708.google.com with SMTP id c14so1049518anc.13 for ; Fri, 29 Feb 2008 11:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=TEhBeEWwdZnYyigTBF8J8+8L1/5tt/zuOg+/jLQnVFw=; b=Mo7X03QDz031/5noyrmkOdmbc3w2OAEXMP0h5Fm8U63zsLk+OTpTjaajql29y648NU7yuKzcUs709phUH34EU18zgaFUhUbMK52GJzhqbWX4/W5AQSoU6HVGPeSlx8QTyMK8y63/sydN9+pRGOu8d5HsLgPwJ2Hw3bDw2Gqt9+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MKaezvcrRLvSfJWKXKW23DqmORlV5WYgdyB0GF6Tf0Z3GnF0n2k7yM+e5Pq6nHLEhAa6xG8TU1Yhqy08rIdYkXNnqGN/6zCSonbgLUVSN9VmuBbBDMFshZ3Dwgv5rT/2kw77IdiRjJz78PsG3tKgzCz10vRktdMYJk9zMCKzK64= Received: by 10.100.47.13 with SMTP id u13mr5529353anu.8.1204314124700; Fri, 29 Feb 2008 11:42:04 -0800 (PST) Received: by 10.100.143.1 with HTTP; Fri, 29 Feb 2008 11:42:04 -0800 (PST) Message-ID: <2d460de70802291142u4bdf7c94qa330ff9dad1324f0@mail.gmail.com> Date: Fri, 29 Feb 2008 20:42:04 +0100 From: "Richard Hartmann" To: "Bart Schaefer" Subject: Re: Editing history stack during runtime? Cc: "zsh users" In-Reply-To: <080229084310.ZM17549@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2d460de70802281709n1847611cp6cb9a5273e212bae@mail.gmail.com> <080229084310.ZM17549@torch.brasslantern.com> X-Virus-Scanned: ClamAV 0.91.2/6047/Fri Feb 29 19:51:13 2008 on bifrost X-Virus-Status: Clean On Fri, Feb 29, 2008 at 5:43 PM, Bart Schaefer wrote: > There are a couple of different things you might mean by this, so I'm > not sure how to answer. I want to take the session history, i.e. what was typed since last login, and edit that. Then, I want whatever I save to replace the session history. Histories of other shells or in files should not be affected in any way. > Then there are the added complications of EXTENDED_HISTORY, which puts > things in $HISTFILE you have to be careful about editing (it's still > all just text, though). You can arrange to strip those so that you > can edit without breaking anything, but then when you rewrite the file > you'll lose all that information. It is probably easiest to just put it into $EDITOR with the commands. I am using EXTENDED_HISTORY, but I don't mind the information in my Vim. If all else fails, blockwise select & remove :) Thanks, Richard