Last active
December 15, 2015 11:49
-
-
Save iansym/5255967 to your computer and use it in GitHub Desktop.
zsh autocorrect helpers
This file contains 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
if [ -f ~/.zsh_nocorrect ]; then | |
while read -r COMMAND; do | |
alias $COMMAND="nocorrect $COMMAND" | |
done < ~/.zsh_nocorrect | |
fi |
This file contains 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
# Add zsh nocorrect command | |
function add-nocorrect() { | |
echo $1 >> ~/.zsh_nocorrect | |
alias $1="nocorrect $1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment