Logo
Explore Help
Register Sign In
mirrors/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-06-03 22:04:31 +08:00
Code Issues Projects Releases Wiki Activity
ohmyzsh/lib/correction.zsh

14 lines
353 B
Bash
Raw Normal View History

Making auto-correction off by default - 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
2013-12-04 20:59:57 -07:00
if [[ "$ENABLE_CORRECTION" == "true" ]]; then
Ordering nocorrect aliases alphabetically
2014-04-09 18:16:57 +02:00
alias ebuild='nocorrect ebuild'
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.
2014-04-09 18:13:19 +02:00
alias gist='nocorrect gist'
alias heroku='nocorrect heroku'
alias hpodder='nocorrect hpodder'
Ordering nocorrect aliases alphabetically
2014-04-09 18:16:57 +02:00
alias man='nocorrect man'
alias mkdir='nocorrect mkdir'
alias mv='nocorrect mv'
alias mysql='nocorrect mysql'
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.
2014-04-09 18:13:19 +02:00
alias sudo='nocorrect sudo'
Add a configuration option to disable autocorrect
2012-07-28 08:25:15 +10:00
setopt correct_all
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 874ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API