即使禁用共享历史记录,zsh 也会保持共享历史记录

amf*_*sta 10 zsh prezto

我正在使用 zsh 和 prezto(在 OSX 和内部 tmux,不确定是否重要),并且不时在多个终端之间共享历史记录。

我已经在我的 .zpreztorc 的末尾添加了 unsetopt share_history 和 unsetopt SHARE_HISTORY,但它一直在混淆历史。

setopt 的输出显示“sharehistory”仍然存在!即使在添加 unsetopt sharehistory 之后。

小智 13

尝试添加:

setopt no_share_history
unsetopt share_history
Run Code Online (Sandbox Code Playgroud)

到 ~/.zshrc ... 这应该工作