Comments (19)
@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.
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.
@omerxx, yep! Thanks for pointing that out 👍 Once you're in the vim club you can't quit 😉
from gau.
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.
@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.
Follow this to avoid conflict
#8 (comment)
from gau.
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.
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.
@vks2694, I use ohmyzsh as well (didn't have that plugin installed though), so I see how this is problematic
from gau.
yeah , Thanks
from gau.
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.
@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.
Can confirm this conflict in oh-my-bash as well.
from gau.
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 linesource $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.
@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.
This also affect gf also but just renaming the gau to gauu and gf to gff.
problem solved.
from gau.
Sadly renaming the gau alias to something else breaks the oh-my-zsh update. It'll ask you to stash your changes.
from gau.
Yes
from gau.
I had the same issue with gf by tomnomnom
from gau.
Related Issues (20)
- Feature request: Add option to return a max amount of result per domain
- gau-2.1.2 binary wont run if outside of a github repository HOT 1
- como remover esse gau do linux HOT 1
- can't install gau HOT 3
- collect2: error: ld returned 1 exit status HOT 3
- ".gau.toml" doesn't work HOT 5
- Add the ability to download resources from web archives
- invalid memory address or nil pointer dereference HOT 2
- gua is not working showing error HOT 1
- GAU .toml not working HOT 6
- error while installing gau
- .git fatal
- not working HOT 3
- Black list filter not working
- fatal: not a git repository (or any of the parent directories): .git HOT 2
- How do I hack a cctv camera
- installation error : no 'go' files in gau/cmd HOT 1
- broken HOT 3
- gau not showing urls correctly HOT 2
- blacklist doesn't seem working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gau.