Created
August 7, 2012 18:10
-
-
Save 30equals/3287939 to your computer and use it in GitHub Desktop.
Ignore ZSH autocorrect for certain commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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