mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-16 02:40:08 +00:00
cd8d5c4410
This commit move the nocorrect aliases definition so they're called only when the user set ENABLE_CORRECTION to "true" to activate commands autocorrection.
13 lines
353 B
Bash
13 lines
353 B
Bash
if [[ "$ENABLE_CORRECTION" == "true" ]]; then
|
|
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'
|
|
|
|
setopt correct_all
|
|
fi
|