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

Re: feature idea: customizable string in history file



On Fri, Mar 7, 2008 at 3:28 PM, Andy Spiegl <zsh.Andy@xxxxxxxxx> wrote:

>  Any idea on how to do that?

You could use a custom precmd or postcmd, but I suggest you
look into alternatives like spyshell and the like. That way, you
can trace what people do in other programs, as well. I could
run

 vim someinnoncentfile
 :!rm -rf /etc/

and you would never know who did it with your approach.


Richard



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