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

gf is incompatible with oh-my-zsh git plugin #9

Closed
gsilvapt opened this issue Jun 28, 2019 · 5 comments
Closed

gf is incompatible with oh-my-zsh git plugin #9

gsilvapt opened this issue Jun 28, 2019 · 5 comments
Labels
wontfix This will not be worked on

Comments

@gsilvapt
Copy link

gsilvapt commented Jun 28, 2019

Just ran the regular installation process (go build && mv gf /usr/bin/ && cat zsh-completion.zsh >> ~/.zshrc && source ~/.zshrc) just fo find out gf wasn't working due to an alias I did not set up.

If you have oh-my-zsh and the git plugin activated (which I believe actually comes activated by default), then this plugin has an alias for gf command, for git fetch.

Console output:

$ gf -list
error: unknown switch `l'
usage: git fetch [<options>] [<repository> [<refspec>...]]
   or: git fetch [<options>] <group>
   or: git fetch --multiple [<options>] [(<repository> | <group>)...]
   or: git fetch --all [<options>] 
... ... ... 
@gsilvapt gsilvapt changed the title gf is incompatible with oh-my-zsh git plugin gf is incompatible with oh-my-zsh git plugin Jun 28, 2019
@Jab2870
Copy link
Contributor

Jab2870 commented Jul 3, 2019

This is because the plugin adds an alias for gf:

$ alias gf
gf='git fetch'

I have got around this by putting unalias gf in by zshrc but if you use it, you could rename gf to something else

@tomnomnom tomnomnom added the wontfix This will not be worked on label Jul 4, 2019
@tomnomnom
Copy link
Owner

I'm not a zsh user, so thanks for clarifying what the issue is @Jab2870 :)

@gsilvapt I'm afraid I don't really want to rename my tool now that it's got more than a dozen or so people using it. Sorry!

@gsilvapt
Copy link
Author

gsilvapt commented Jul 4, 2019

I'm not a zsh user, so thanks for clarifying what the issue is @Jab2870 :)

@gsilvapt I'm afraid I don't really want to rename my tool now that it's got more than a dozen or so people using it. Sorry!

My intention was clearly not to rename this tool but to report the issue and also have something added in the README file or something to let other users know. If you don't find it relevant, I understand.

@tomnomnom
Copy link
Owner

Ah! OK! Sorry I misunderstood! I'll add something to the readme now, thank you :)

@brammittendorff
Copy link

Yea same problem here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants