• Bob Bonifield's avatar
    Making auto-correction off by default · f082d7a2
    Bob Bonifield authored
    - Allows for the user to turn on auto-correction using the
    $ENABLE_CORRECTION variable
    - Adds aliases regardless of variable assignment to aid users that use
    setopt to turn correction back on in their zshrc
    f082d7a2
correction.zsh 335 Bytes
alias man='nocorrect man'
alias mv='nocorrect mv'
alias mysql='nocorrect mysql'
alias mkdir='nocorrect mkdir'
alias gist='nocorrect gist'
alias heroku='nocorrect heroku'
alias ebuild='nocorrect ebuild'
alias hpodder='nocorrect hpodder'
alias sudo='nocorrect sudo'

if [[ "$ENABLE_CORRECTION" == "true" ]]; then
  setopt correct_all
fi