Skip to content

Instantly share code, notes, and snippets.

@30equals
Created August 7, 2012 18:10
Show Gist options
  • Save 30equals/3287939 to your computer and use it in GitHub Desktop.
Save 30equals/3287939 to your computer and use it in GitHub Desktop.
Ignore ZSH autocorrect for certain commands
1) List all the commands to not be corrected in ~/.zsh_nocorrect, 1 per line.
2) Add to ~/.zshrc:
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