Hi everyone,

git's bash completion scripts are fantastic and a time saver -- I use them 
on a daily (minute-ly?) basis. That said, I wished they could tab-complete 
not just local arguments and option names, but also URLs to be cloned from 
git hosting services.

I put something like that together -- a `git clone completion` bash script 
-- and made it available at:

https://github.com/mjuric/git-clone-completion

It auto-completes organization and repository names for GitHub, GitLab, 
BitBucket but also plain old SSH. For example:

$ git clone g...@github.com:git/*<TAB><TAB>*

git/git                      git/git-scm.com              git/gitscm-old    
           git/sha1collisiondetection

git/git-reference            git/git.github.io            git/htmldocs

$ git clone g...@github.com:git/


Installing should be simple (just sourcing the script should do it; it will 
guide you through the rest). It should work on bash 3.2+ (I regularly use 
it on macOS and CentOS 7, but I suspect any flavor of Linux should work).

Questions/comments/bug reports are always appreciated (I suspect there may 
be a few, given it's a new project)!

Cheers,
-- M

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/dca6b385-a3cf-4ae4-981a-0733d833eb9a%40googlegroups.com.

Reply via email to