Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Hiding command from history
Hi,
On Tue, Feb 3, 2015 at 2:13 PM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Tue, 3 Feb 2015 13:29:34 +0200
> İsmail Dönmez <ismail@xxxxxxxxx> 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=" ls"
>> alias mv=" 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="rm *:ls *"
doesn't seem to work. Tried with
> HISTORY_IGNORE="rm *:ls *" zsh
Thanks!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author