From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24216 invoked by alias); 3 Feb 2015 13:49:55 -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: 19797 Received: (qmail 11350 invoked from network); 3 Feb 2015 13:49:42 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=donmez.ws; s=www; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=wjRVWC6deeB54Anm1LUP8B5v8dK7hkcGHRzElh426Ts=; b=WkX8xigaQcuo1RqA+V69ALLqZEY//NzQt6WKI84Ib3ClzEYYIrMEQqlMls4Dm4GVXc lni88FBW1aeGvmSWjTB9o5xEYQKY/KMDyZgRpskZNyH2+DJp3VAzdqerjWwC7vPATyu+ 9zPb57jefaamYPRjSSLvZBIoo/IV3G3pirZlA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=wjRVWC6deeB54Anm1LUP8B5v8dK7hkcGHRzElh426Ts=; b=IflhWzafu9Q44dJCAQG0mMK1CsYRDpnBq3lWiBqJLfyQMqyezty+p6M88v/40EZUzc phJREepQmJ2Ar4QmAk2arTazC4PhmGMJm+D8on1P2uSlwA2J2I6QFMDmgSFIF/Lp/APh XY0CZr7k9VCryA6daVL3XUr5Wozt4N4KizuACPvbzt7JgrnQezxKJKhvLC5GUXEaMtjC sTpo5S2G1kw3KrH9sAViISYxhzppTpj2pSZpcRGQ8NNKr64LxhhGq8zVPtZeU5MIUHhh 31DSDMZy8RAOPzYyZEl7SECZVuCS3NuU1TECxtrJznfMg4wOyQNl9iTqT+I8BHMUzfH6 MAdA== X-Gm-Message-State: ALoCoQksO0myXxYhJYDJGwQ5kAQOR2hkP9zuqqvqvppnjGqDe+HN9gEJEMVGl1BvzyXyZnsQyUaH X-Received: by 10.152.120.198 with SMTP id le6mr3484956lab.58.1422971380998; Tue, 03 Feb 2015 05:49:40 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20150203121349.53f135fd@pwslap01u.europe.root.pri> <20150203124708.443404f0@pwslap01u.europe.root.pri> From: =?UTF-8?B?xLBzbWFpbCBEw7ZubWV6?= Date: Tue, 3 Feb 2015 15:49:20 +0200 Message-ID: Subject: Re: Hiding command from history To: Peter Stephenson Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Feb 3, 2015 at 3:06 PM, =C4=B0smail D=C3=B6nmez = wrote: > On Tue, Feb 3, 2015 at 2:47 PM, Peter Stephenson > wrote: >> and indeed there's no reason I can think of why you couldn't simply >> define >> >> zshaddhistory() { [[ $1 =3D ${~HISTORY_IGNORE} ]] && return 1; } > > This is quite nice. Thanks! Talked too early it seems. When I add this line to my ~/.zshrc then history file is never updated when I exit the shell. Removing this line fixes the problem. Any ideas why? I also tried the zshaddhistory() { [[ $1 =3D (ls|rm)\ * ]] && return 1; } version but the same problem happens there. I am using zsh.git