Zsh plugin to enhance git completion to include in the remotes completion (e.g. from
git clone) any URL in the clipboard
zsh-git-complete-urls.plugin.zsh in your
Add the following line to your
antigen bundle rapgenic/zsh-git-complete-urls
antibody bundle rapgenic/zsh-git-complete-urls
zgen load rapgenic/zsh-git-complete-urls
How does it work??
It just overrides one of the simplest functions in the default git zsh completion library,
__git_any_repositories, which gives the suggestions for the repos, and by adding a single argument to the
__git_remote_clipboard is another function defined in the plugin file that gives back an url suggestion from the clipboard, that is then added to the list of suggestions returned.