3 ms·
You could probably wrap it with another BASH script named git that looks for hub as $1, otherwise it passes its args directly into the git command. I haven't qu
by jschwartzi 11y ago
You could probably wrap it with another BASH script named git that looks for hub as $1, otherwise it passes its args directly into the git command. I haven't quite worked out how $PATH resolution would work in that scheme though.
- jessedhillon 11y agoGit already works like this. If you attempt `git foo`, your $PATH will be consulted for an executable with the name `git-foo`, and if found, it will be called with the rest of the arguments. That's why this command is `git-hub` and is invoked with `git hub`.