suffix aliases do not even have to refer to a real existing file. They are an alias. That's what I use to clone git repos I copypaste:
alias -s git="git clone" alias -s git="git clone"happy hacking :)
Overwriting a command-line tool with no other arguments seems like a bad idea.
The only time I use the full URL is the initial cloning, and the remote name thereafter. But if you use the full URL in another scenario, yes, this may interfere.
- "git", alone isn't going to be hooked.
- you can do "cd .git".
- even if you have 'autocd' option set, you can '.git' and it will do "cd .git".
I'm not saying it's even a good practice, but I find it kinda cool, when using this feature in a way it's probably not intended for, you start thinking in 'what might happen inside'. https://github.com/zsh-users/zsh.git
Into your shell, and have it automatically get translated into git clone https://github.com/zsh-users/zsh.git
It has no effect at all on your ability to run regular git commands.