Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Zsh plugin to enhance git completion to include in the remotes completion (e.g. from `git clone`) any URL in the clipboard

License

NotificationsYou must be signed in to change notification settings

rapgenic/zsh-git-complete-urls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Zsh plugin to enhance git completion to include in the remotes completion (e.g. fromgit clone) any URL in the clipboard

Installation

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

zplug "rapgenic/zsh-git-complete-urls"

antigen

antigen bundle rapgenic/zsh-git-complete-urls

antibody

antibody bundle rapgenic/zsh-git-complete-urls

zgen

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_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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp