Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Only `setopt correct`, not "correct_all". #749

Merged
merged 1 commit into from
@blueyed

Using the correct_all option is too distracting, and needs a lot of
nocorrect aliases to work around this.

Using only "correct" to correct the command itself is more friendly.

@blueyed blueyed Only `setopt correct`, not "correct_all".
Using the correct_all option is too distracting, and needs a lot of
`nocorrect` aliases to work around this.

Using only "correct" to correct the command itself is more friendly.
70e5118
@cicloid

:+1:

I have noticed this also.

@tubbo

+1

@Soares

+1, I always override this myself.

@akamch

:+1:
~ » sudo aptitude
zsh: correct 'aptitude' to '.aptitude' [nyae]? :punch:

@rwz
rwz commented

:+1:

$ git checkout -b pp/new_feature
zsh: correct 'pp/new_feature' to 'app/new_feature' [nyae]? n
$ heroku logs -t
zsh: correct 'logs' to 'log' [nyae]? n
@haihappen

Yeah, please accept this pull request!

@zhuangya

please accept

really troubles me..

$ rake deploy 
zsh: correct 'deploy' to '_deploy' [nyae]? 

@neoascetic

+1 on this
(moved to antigen and my own repo)

@F30

Yet another +1

@shenrui01

Yet another +1

@jmatth

+1. Overriding in my own fork now.

@robbyrussell robbyrussell merged commit b8b241f into from
@robbyrussell

Giving in... it's annoyed me enough times too. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 16, 2011
  1. @blueyed

    Only `setopt correct`, not "correct_all".

    blueyed authored
    Using the correct_all option is too distracting, and needs a lot of
    `nocorrect` aliases to work around this.
    
    Using only "correct" to correct the command itself is more friendly.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 10 deletions.
  1. +2 −10 lib/correction.zsh
View
12 lib/correction.zsh
@@ -1,10 +1,2 @@
-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'
+# correct commands, but not any arguments (correct_all would do that)
+setopt correct
Something went wrong with that request. Please try again.