Skip to content

Commit

Permalink
Resolving conflict in ohmyzsh#1266 merge
Browse files Browse the repository at this point in the history
  • Loading branch information
robbyrussell committed Apr 24, 2013
2 parents 7cdb6d6 + 682961e commit a2c8db9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lib/correction.zsh
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# correct commands, but not any arguments (correct_all would do that)
setopt correct
if [[ "$DISABLE_CORRECTION" == "true" ]]; then
return
else
setopt correct_all

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'
fi
3 changes: 3 additions & 0 deletions templates/zshrc.zsh-template
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ ZSH_THEME="robbyrussell"
# Uncomment following line if you want to disable autosetting terminal title.
# 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
# COMPLETION_WAITING_DOTS="true"

Expand Down

0 comments on commit a2c8db9

Please sign in to comment.