I am using git and zsh. Our boss is using git-flow. Zsh keeps asking me if I mistyped 'features' as 'feature'. A colleague stopped using zsh out of fury for this very reason, we must fix this problem to bring him back into the light of zsh!
rainbow@pony:~/ruby-project-9000 (*) (!)
> git push origin feature/power_level
zsh: correct 'feature/power_level' to 'features/power_level' [nyae]? n
It was just correct_all, as in the accepted answer, but the syntax for disabling zsh autocorrect varies over its updates. The following should be a catch all:
source $ZSH/oh-my-zsh.sh
DISABLE_CORRECTION="true"
unsetopt correct
unsetopt correct_all
DISABLE_CORRECTION="true" - is currently what works for me, learned from here
To specifically disable it autocorrecting commands, but unfortunately not "features" as it is a directory (thanks answers below!), see this solution for exempting commands
Turn off feature completely:
unsetopt correct_all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With