Skip to content

Instantly share code, notes, and snippets.

@iansym
Last active December 15, 2015 11:49
Show Gist options
  • Save iansym/5255967 to your computer and use it in GitHub Desktop.
Save iansym/5255967 to your computer and use it in GitHub Desktop.
zsh autocorrect helpers
if [ -f ~/.zsh_nocorrect ]; then
while read -r COMMAND; do
alias $COMMAND="nocorrect $COMMAND"
done < ~/.zsh_nocorrect
fi
# 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