-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
gau binary conflict (ohmyzsh git.plugin alias) #8
Comments
when you fire This issue will cause name conflict between your binary "gau" and git alias "gau"(git add --update) so this problem will only resolve by changing your repo to a different name , or we should change the $GOPATH/bin/gau to some another binary name. |
Hm, I don't plan on renaming this – where do you see that it's a git alias? As far as I've seen so far it seems to be a user-defined alias, right? I do see it's defined in the https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh |
Actually now a days most of the users use zsh. so i recommended the above solution. |
@vks2694, I use ohmyzsh as well (didn't have that plugin installed though), so I see how this is problematic |
@vks2694, This is the first time someone's encountered this problem / opened an issue so far – I don't plan on renaming this right now. Here's a workaround the issue: You can download the pre-built binaries from the releases page and then move them into your $PATH with a different name Ex:
|
yeah , Thanks |
Thanks for flagging this @vks2694, I'm going to pin this and add a note in the README. Should more people encounter this issue I may consider renaming. |
@lc Another obvious as option (as a ohmzsh user and gau) is to vim ~/.oh-my-zsh/plugins/git/git.plugin.zsh
# alias gau='git add --update' |
@omerxx, yep! Thanks for pointing that out 👍 Once you're in the vim club you can't quit 😉 |
A second possible solution is that make an alias for "gau" binary in .zshrc as your wish and use it. |
Instead of editing the oh-my-zsh plugin, which could cause problems with git conflicts is to set I don't use the gau git alias so this has been the simplest for me. |
Can confirm this conflict in oh-my-bash as well. |
Thank you so much, it's working now! |
Thanks man. |
This also affect gf also but just renaming the gau to gauu and gf to gff. problem solved. |
Sadly renaming the gau alias to something else breaks the oh-my-zsh update. It'll ask you to stash your changes. |
Yes |
Follow this to avoid conflict |
I had the same issue with gf by tomnomnom |
Here is another workaround the issue: |
As gau binary conflict with the gau git inbuild alias
gau stands for git add --update (Also: "git add -u")
The text was updated successfully, but these errors were encountered: