Code Monkey home page Code Monkey logo

Comments (19)

omerxx avatar omerxx commented on August 16, 2024 40

@lc Another obvious as option (as a ohmzsh user and gau) is to unalias gau for git because it's rarely used;
Edit with your favorite editor (that should be Vim :) ) and comment out the alias:

vim ~/.oh-my-zsh/plugins/git/git.plugin.zsh
# alias gau='git add --update'

from gau.

0x646e78 avatar 0x646e78 commented on August 16, 2024 21

Instead of editing the oh-my-zsh plugin, which could cause problems with git conflicts is to set unalias gau in your .zshrc after the line source $ZSH/oh-my-zsh.sh

I don't use the gau git alias so this has been the simplest for me.

from gau.

lc avatar lc commented on August 16, 2024 3

@omerxx, yep! Thanks for pointing that out 👍 Once you're in the vim club you can't quit 😉

from gau.

v7nc3nz avatar v7nc3nz commented on August 16, 2024 1

when you fire
go get -u github.com/lc/gau
this will clone the directory in our $GOPATH/src/github.com/lc/gau......
and this will install binary in the $GOPATH/bin with the name of gau

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.

from gau.

lc avatar lc commented on August 16, 2024 1

@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:

▻ tar xvf gau-linux-amd64.tar
▻ mv gau-linux-amd64 /usr/bin/getallurls

from gau.

v7nc3nz avatar v7nc3nz commented on August 16, 2024 1

Follow this to avoid conflict
#8 (comment)

from gau.

lc avatar lc commented on August 16, 2024

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 ohmyzsh git plugin:

https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh

from gau.

v7nc3nz avatar v7nc3nz commented on August 16, 2024

Actually now a days most of the users use zsh. so i recommended the above solution.
https://github.com/ohmyzsh/ohmyzsh/wiki/Cheatsheet

from gau.

lc avatar lc commented on August 16, 2024

@vks2694, I use ohmyzsh as well (didn't have that plugin installed though), so I see how this is problematic

from gau.

v7nc3nz avatar v7nc3nz commented on August 16, 2024

yeah , Thanks

from gau.

lc avatar lc commented on August 16, 2024

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.

from gau.

raz455 avatar raz455 commented on August 16, 2024

@lc Another obvious as option (as a ohmzsh user and gau) is to unalias gau for git because it's rarely used;
Edit with your favorite editor (that should be Vim :) ) and comment out the alias:

vim ~/.oh-my-zsh/plugins/git/git.plugin.zsh
# alias gau='git add --update'

A second possible solution is that make an alias for "gau" binary in .zshrc as your wish and use it.

from gau.

0xcrypto avatar 0xcrypto commented on August 16, 2024

Can confirm this conflict in oh-my-bash as well.

from gau.

alexandrepessoa33 avatar alexandrepessoa33 commented on August 16, 2024

Instead of editing the oh-my-zsh plugin, which could cause problems with git conflicts is to set unalias gau in your .zshrc after the line source $ZSH/oh-my-zsh.sh

I don't use the gau git alias so this has been the simplest for me.

Thank you so much, it's working now!

from gau.

glaucusec avatar glaucusec commented on August 16, 2024

@lc Another obvious as option (as a ohmzsh user and gau) is to unalias gau for git because it's rarely used;
Edit with your favorite editor (that should be Vim :) ) and comment out the alias:

vim ~/.oh-my-zsh/plugins/git/git.plugin.zsh
# alias gau='git add --update'

Thanks man.

from gau.

Daniyyell avatar Daniyyell commented on August 16, 2024

This also affect gf also but just renaming the gau to gauu and gf to gff.

problem solved.

from gau.

az0mb13 avatar az0mb13 commented on August 16, 2024

Sadly renaming the gau alias to something else breaks the oh-my-zsh update. It'll ask you to stash your changes.

from gau.

Daniyyell avatar Daniyyell commented on August 16, 2024

Yes

from gau.

tiklup11 avatar tiklup11 commented on August 16, 2024

I had the same issue with gf by tomnomnom

from gau.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.