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

Re: zshaddhistory confusion



Benjamin Haskell wrote:
> zshaddhistory () {
>   print -sr -- "${1%%$'\n'}"
>   fc -p ~/.zsh_history_detail
>   print -sr -- "${1%%$'\n'} ### ${PWD} $(date '+%Y-%m-%d %R')"
>   return 1
> }

Thanks for the help! This fixes the double-write to
.zsh_history_detail, but is still writing weird stuff to .zsh_history:

: 1317501595:0;echo autojump.zsh
: 1317501605:0;git st
: 1317501607:0;echo git st
: 1317501691:0;cd
: 1317501694:0;tail .zsh_history

Ideas?



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