Run Code Online (Sandbox Code Playgroud)HIST_FIND_NO_DUPS When searching for history entries in the line editor, do not display duplicates of a line previously found, even if the duplicates are not contiguous.
但是,当我重复使用 Ctrl-p 时,会出现相同的命令。
$ ls
$ pwd
$ ls
$ <Ctrl-p> => ls
<Ctrl-p> => pwd
<Ctrl-p> => ls again!
Run Code Online (Sandbox Code Playgroud)
zsh 5.0.5 (x86_64-apple-darwin14.0)
zsh ×1