Last active
October 27, 2018 18:21
-
-
Save indyaah/0c4df3fcd664ea295f70125257189ed3 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
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