1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 07:38:48 +08:00

Defining nocorrect aliases only when ENABLE_CORRECTION is "true"

This commit move the nocorrect aliases definition so they're called
only when the user set ENABLE_CORRECTION to "true" to activate commands
autocorrection.
This commit is contained in:
Simon Courtois 2014-04-09 18:13:19 +02:00 committed by ncanceill
parent 4c64cf4a25
commit cd8d5c4410

View File

@ -1,13 +1,13 @@
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
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