holman / dotfiles

@holman does dotfiles
http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/
MIT License
7.27k stars 3.36k forks source link

zsh/config.zsh INC_APPEND_HISTORY and SHARE_HISTORY #283

Open CNG opened 7 years ago

CNG commented 7 years ago

The lines https://github.com/holman/dotfiles/blob/master/zsh/config.zsh#L18 and https://github.com/holman/dotfiles/blob/master/zsh/config.zsh#L26 seem to specify incompatible options. The second line also repeats SHARE_HISTORY.

From The Z Shell Manual:

SHARE_HISTORY <K>

This option both imports new commands from the history file, and also causes your typed commands to be appended to the history file (the latter is like specifying INC_APPEND_HISTORY, which should be turned off if this option is in effect).

CNG commented 7 years ago

I think APPEND_HISTORY is also redundant if INC_APPEND_HISTORY is set.