This file contains 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
function gclone() { | |
local organization | |
local repositories | |
organization="$1" | |
repositories="$(gh repo list -L 1000 "$organization" | fzf --multi --cycle | awk '{print $1}')" | |
for repository in $repositories; do | |
echo "Cloning $repository" | |
gh repo clone "$repository" | |
done | |
} |