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

Re: Issue with history



On Wed, Mar 14, 2012 at 2:59 AM, François <aifsair@xxxxxxxxx> wrote:
>
> There is still a big change that appeared in my .zsh_history:
>
> […]
> vim .emacs
> find . -name '*.c'
> open -a emacs  Downloads/ddns-1.0/message.c

So, where did you execute those particular commands?

It begins to appear that you (unintentionally) have history configured
differently for login shells as compared to other interactive shells.
For example, /etc/zlogin may be resetting some history options and
thereby replacing the ones that you have in your .zshrc.

Try running

zsh -x -i 2> /tmp/zshxi
zsh -x -l 2> /tmp/zshxl
diff -u /tmp/zshxi /tmp/zshxl | more

then search through the diff for unexpected setopt commands, etc.



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