如何在zsh中对su​​do [command]禁用自动更正?


17

我的zsh和oh-my-zsh具有默认值,无法弄清楚如何关闭我经常使用的特定命令的自动更正,例如:sudo mc或sudo gem update。问题是我有.mc目录和.gem目录,而zsh提出自动更正(zsh: correct 'mc' to '.mc' [nyae])。

通常,我想配置zsh,这样sudo [smth]它就不会被视为用于自动校正的单独命令(不是)。有什么解决办法?

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.