Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Hiding command from history



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, and if you want
something a bit more powerful also the zshaddhistory hook in the zshmisc
manuel (and let us know if that doesn't seem to make sense...)

pws



Messages sorted by: Reverse Date, Date, Thread, Author