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

11 lines
239 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
Don't correct cp commands (#4636)
2018-07-01 22:43:45 +02:00
alias cp='nocorrect cp'
Ordering nocorrect aliases alphabetically
2014-04-09 18:16:57 +02:00
alias man='nocorrect man'
alias mkdir='nocorrect mkdir'
alias mv='nocorrect mv'
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'
feat(lib): don't correct `su` command arguments (#10214)
2021-09-29 13:07:25 -03:00
alias su='nocorrect su'
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
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: 705ms Template: 6ms
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