我想完全禁用 Zsh 历史记录(向上箭头)和 zle 历史搜索(即 esc+p)。我怎样才能实现这个目标?
我目前的.zshrc
:
unsetopt hist_append
unsetopt hist_expand
HISTFILE=
HISTSIZE=SAVEHIST=0
Run Code Online (Sandbox Code Playgroud)
目前我的历史缓冲区为一,但我希望历史缓冲区为零。
2016年10月21日更新:
我已经添加
bindkey -r "^[p"
bindkey -r "^Xr"
bindkey -r "^Xs"
bindkey -r "^[[A"
bindkey -r "^[[B"
bindkey -r "^[n"
Run Code Online (Sandbox Code Playgroud)
摆脱我使用的历史功能(esc+p 深深地固定在我的骨干上 - 很难忘记)。
zsh ×1