the problem:
subl somefile
zsh: correct 'subl' to 'ul' [nyae]? n
node -v
zsh: correct 'node' to 'od' [nyae]? n
v0.8.16
create .zsh_nocorrect:
touch ~/.zsh_nocorrect
with:
subl
node
onecommandperline
Add to the end of ~/.zshrc file:
if [ -f ~/.zsh_nocorrect ]; then
while read -r COMMAND; do
alias $COMMAND="nocorrect $COMMAND"
done < ~/.zsh_nocorrect
fi
works on my machine. Does this support args to a tool? I want to disable autocorrect for
go test
but not necessarilygo
?