Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在玩 Octopress/github 页面。当我输入 rake deploy 时,终端总是输出 zsh: correct 'deploy' to '_deploy' [nyae]?。我输入 n。
为了不显示'zsh:正确'deploy'到'_deploy'[nyae],我需要做什么?' 在我的终端?
提前致谢。
rake deploy zsh: correct 'deploy' to '_deploy' [nyae]?
快速修复:禁用自动更正。在你的~/.zshrc:
~/.zshrc
unsetopt correct_all
如果您想要自动更正但不是rake:
rake
alias rake='nocorrect rake'
我相信unsetopt correct_all最新更新不再适用。一个更强大的解决方案是在您的~/.zshrc文件中添加
DISABLE_CORRECTION="true"