Skip to content

Instantly share code, notes, and snippets.

@lysu
Forked from vitormil/gist:4364864
Created March 3, 2013 07:30
Show Gist options
  • Save lysu/5075196 to your computer and use it in GitHub Desktop.
Save lysu/5075196 to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment