Skip to content

Instantly share code, notes, and snippets.

@denisinla
Created December 16, 2012 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denisinla/4314012 to your computer and use it in GitHub Desktop.
Save denisinla/4314012 to your computer and use it in GitHub Desktop.
Disabling zsh's autocorrect for 'git lg' command.

You can add a line to your .zshrc to ignore auto-correct for all git commands:

alias git='nocorrect git'

The other option is to re-create your aliases from .gitconfig in .zshrc like so:

alias 'glg'='git lg'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment