如何解决无法停止 ZSH 自动更正
我已经在我的 ~/.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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。