Skip to content

Instantly share code, notes, and snippets.

@indyaah
Last active October 27, 2018 18:21
Show Gist options
  • Save indyaah/0c4df3fcd664ea295f70125257189ed3 to your computer and use it in GitHub Desktop.
Save indyaah/0c4df3fcd664ea295f70125257189ed3 to your computer and use it in GitHub Desktop.
ghget () {
USER=$(echo $@ | tr "/" " " | awk '{print $1}')
REPO=$(echo $@ | tr "/" " " | awk '{print $2}')
mcd "$HOME/src/github.com/$USER" && hub clone $@ && cd $REPO
}
mcd () {
mkdir -p -p "$@" && cd "$@"
}
for repo in $(curl "https://api.github.com/orgs/knime/repos?per_page=200" | jq -r '.[].full_name'); do ghget $repo; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment