mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01: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:
committed by
ncanceill
parent
4c64cf4a25
commit
cd8d5c4410
@@ -1,3 +1,4 @@
|
|||||||
|
if [[ "$ENABLE_CORRECTION" == "true" ]]; then
|
||||||
alias man='nocorrect man'
|
alias man='nocorrect man'
|
||||||
alias mv='nocorrect mv'
|
alias mv='nocorrect mv'
|
||||||
alias mysql='nocorrect mysql'
|
alias mysql='nocorrect mysql'
|
||||||
@@ -8,6 +9,5 @@ alias ebuild='nocorrect ebuild'
|
|||||||
alias hpodder='nocorrect hpodder'
|
alias hpodder='nocorrect hpodder'
|
||||||
alias sudo='nocorrect sudo'
|
alias sudo='nocorrect sudo'
|
||||||
|
|
||||||
if [[ "$ENABLE_CORRECTION" == "true" ]]; then
|
|
||||||
setopt correct_all
|
setopt correct_all
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user