Created
February 10, 2018 14:11
-
-
Save timm0e/d4796304abb46b56db354ad0abc28f17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you need jq installed | |
set GITHUB_USER <YOUR USER NAME> | |
complete -c git -n "string match -r '^git clone.*' (commandline) > /dev/null ; echo $status" -a '(curl -Ls https://api.github.com/users/$GITHUB_USER/repos|jq ".[]|.clone_url" -c|string replace -a "\"" "")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment