wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

zplug: forgit is not available #265

Closed jeusdi closed 1 year ago

jeusdi commented 1 year ago

Check list

Environment info

Problem / Steps to reproduce

I've recorded this asciinema here in order to see behavior. I'm using zplug, but I don't quite figure out why forgit is not available...

carlfriedrich commented 1 year ago

There is no plain command forgit. You have to use it either via the git subcommand git forgit or via the shell aliases, like described in the documentation.

jeusdi commented 1 year ago

Ohhh... I'm really a newbie. I don0t quite figure out which is the magic behind. I mean, hw is possible that adding a directory on PATH, git picks them as subcomands? I neither understand aliases tweaks. Some ideas in order to understand it?

carlfriedrich commented 1 year ago

That's a feature of git:

https://github.com/git/git/blob/master/Documentation/howto/new-command.txt#L15-L22

See the git documentation on aliases:

https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases