Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
682961e9
Commit
682961e9
authored
Jul 27, 2012
by
Morgan Larosa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a configuration option to disable autocorrect
parent
d05b2010
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
correction.zsh
lib/correction.zsh
+13
-9
zshrc.zsh-template
templates/zshrc.zsh-template
+3
-0
No files found.
lib/correction.zsh
View file @
682961e9
setopt correct_all
if
[[
"
$DISABLE_CORRECTION
"
==
"true"
]]
;
then
return
else
setopt correct_all
alias
man
=
'nocorrect man'
alias
man
=
'nocorrect man'
alias mv
=
'nocorrect mv'
alias mv
=
'nocorrect mv'
alias
mysql
=
'nocorrect mysql'
alias
mysql
=
'nocorrect mysql'
alias mkdir
=
'nocorrect mkdir'
alias mkdir
=
'nocorrect mkdir'
alias
gist
=
'nocorrect gist'
alias
gist
=
'nocorrect gist'
alias
heroku
=
'nocorrect heroku'
alias
heroku
=
'nocorrect heroku'
alias
ebuild
=
'nocorrect ebuild'
alias
ebuild
=
'nocorrect ebuild'
alias
hpodder
=
'nocorrect hpodder'
alias
hpodder
=
'nocorrect hpodder'
fi
templates/zshrc.zsh-template
View file @
682961e9
...
@@ -23,6 +23,9 @@ ZSH_THEME="robbyrussell"
...
@@ -23,6 +23,9 @@ ZSH_THEME="robbyrussell"
# Uncomment following line if you want to disable autosetting terminal title.
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# COMPLETION_WAITING_DOTS="true"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment