- Notifications
You must be signed in to change notification settings - Fork1
Zsh plugin to enhance git completion to include in the remotes completion (e.g. from `git clone`) any URL in the clipboard
License
rapgenic/zsh-git-complete-urls
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Zsh plugin to enhance git completion to include in the remotes completion (e.g. fromgit clone
) any URL in the clipboard
Just sourcezsh-git-complete-urls.plugin.zsh
in your.zshrc
.
The clipboard plugin (included for example inoh-my-zsh or available atzsh-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.
About
Zsh plugin to enhance git completion to include in the remotes completion (e.g. from `git clone`) any URL in the clipboard
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.