From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2440 invoked by alias); 3 Feb 2015 12:35:16 -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: 19792 Received: (qmail 28345 invoked from network); 3 Feb 2015 12:35:14 -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=Nl/Ez80vgetx4P59MUru6ixUGuHXG5HWaJAUTXnv7NQ=; b=Z4RV7EdFmdPHhlB0o0RZL2Z7EIC8vIZ3x1VgLLdSDJ4T07Vcs26jVNfl/esn8tTccq kyEZIUdGlCw121RFwmQWtUACxqoqXo9HAsrwnYdD0boPEEEz3/9zgUNo1488LeR9e3QG KXLB3MK5xtECFZj9ODZk4LWeDUC+sHFay9enE= 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=Nl/Ez80vgetx4P59MUru6ixUGuHXG5HWaJAUTXnv7NQ=; b=XF6JUnYENOQxaOfzf++RmXmkQiyKfwH/Olspf29096ZtmkoxurJt/6RdXZZqf2cDIC wpr3S8uywgShXgoJQb97V3nTJ1kDeFtRxuvpcTcqsjDzMsSMZOtyJWiwmvg8SCktPihB k6PXknUEMc6AmeWPfAJ0+JaSAHAwnJqzFlLhHaqmYyqE4AbN6A1hFKpjf+Hal3IN02RV 4f8BVZHrP97hFm/pOS1eesbX9T6VlrsbQdqiWhSFLuzwnirnuCQzN/Do8to0Tbzj2suq r9g0CiX45nr2IZVA6GqkPBV3rRV1+EUKygAF1ZOn38x/2/M74bHwBC1YQmqOEHBsBq5P tDIA== X-Gm-Message-State: ALoCoQlla21YNJ7/rCJmXXn1+YOfLbpJFk0uMqqSNSqgfWPI7AUpT5l8U1rYL5WKLGm15xWNU74+ X-Received: by 10.152.234.230 with SMTP id uh6mr23186474lac.97.1422966910415; Tue, 03 Feb 2015 04:35:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20150203121349.53f135fd@pwslap01u.europe.root.pri> References: <20150203121349.53f135fd@pwslap01u.europe.root.pri> From: =?UTF-8?B?xLBzbWFpbCBEw7ZubWV6?= Date: Tue, 3 Feb 2015 14:34:49 +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 Hi, On Tue, Feb 3, 2015 at 2:13 PM, Peter Stephenson wrote: > On Tue, 3 Feb 2015 13:29:34 +0200 > =C4=B0smail D=C3=B6nmez wrote: >> Hi, >> >> I know I can set HIST_IGNORE_SPACE and any command starting with space >> will not be logged in history. But with that I have many aliases like >> >> alias ls=3D" ls" >> alias mv=3D" mv" >> >> etc. So, I wonder if there is an easier way to blacklist multiple >> commands from history without creating an alias for each of them? > > Have a look at HISTORY_IGNORE in the zshparam manule This seems to be the best option but I can't figure out the syntaxt. Bash's similar HISTIGNORE syntax HISTORY_IGNORE=3D"rm *:ls *" doesn't seem to work. Tried with > HISTORY_IGNORE=3D"rm *:ls *" zsh Thanks!