无法停止 ZSH 自动更正
can't stop ZSH autocorrect
我已经在 ~/.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.
我已经在 ~/.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.