Skip to content

Instantly share code, notes, and snippets.

@timm0e
Created February 10, 2018 14:11
Show Gist options
  • Save timm0e/d4796304abb46b56db354ad0abc28f17 to your computer and use it in GitHub Desktop.
Save timm0e/d4796304abb46b56db354ad0abc28f17 to your computer and use it in GitHub Desktop.
# 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