Zsh plugin to enhance git completion to include in the remotes completion (e.g. from git clone
) any URL in the clipboard
Just source zsh-git-complete-urls.plugin.zsh
in your .zshrc
.
The clipboard plugin (included for example in oh-my-zsh or available at zsh-clipboard as a single plugin) must be installed for zsh-git-complete-urls to work
Add the following line to your .zshrc
:
zplug "rapgenic/zsh-git-complete-urls"
antigen bundle rapgenic/zsh-git-complete-urls
antibody bundle rapgenic/zsh-git-complete-urls
zgen load rapgenic/zsh-git-complete-urls
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 _alternative
function:
'remote-clipboard::__git_remote_clipboard'
where __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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4