Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable autocorrect lg to log #949

Closed
dlee opened this issue Feb 21, 2012 · 3 comments

Comments

Projects
None yet
5 participants
@dlee
Copy link
Contributor

commented Feb 21, 2012

I have a git alias for git lg, but every time I use it, I get this: zsh: correct 'lg' to 'log' [nyae]?.

It seems like zsh is trying to autocorrect lg for log everywhere, since grep lg, ls lg, etc all result in the same autocomplete prompt.

Is there a way to disable autocorrect for lg -> log? Would it make sense to disable it by default in oh-my-zsh?

@ashayh

This comment has been minimized.

Copy link

commented Mar 12, 2012

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'

@jesse-c

This comment has been minimized.

Copy link

commented Mar 24, 2012

Just wanted to say thank you, ashayh as I had a similar issue.

@sunny

This comment has been minimized.

Copy link

commented Aug 7, 2012

It seems like zsh is trying to autocorrect lg for log everywhere, since grep lg, ls lg, etc all result in the same autocomplete prompt.

That is because in the project you are in a folder must probably be named log. So another solution would be to rename log/ into logs/ (not much of a solution, I know).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.