问题描述
我已经在我的 ~/.zshrc
disABLE_CORRECTION="true"
disABLE_AUTO_TITLE="true"
unsetopt correct
不过,ZSH 一直在尝试自动更正。
我可以设置什么设置、配置等来阻止这种超级烦人的行为?
解决方法
你差点就明白了。您正在寻找的选项是 unsetopt correct_all
来自man zshoptions
:
CORRECT (-0)
Try to correct the spelling of commands. Note that,when the HASH_LIST_ALL option is not set or when some directories in the path are not readable,The shell variable CORRECT_IGNORE may be set to a pattern to match words that will never be offered as corrections.
CORRECT_ALL (-O)
Try to correct the spelling of all arguments in a line.
The shell variable CORRECT_IGNORE_FILE may be set to a pattern to match file names that will never be offered as corrections.