Last active
April 14, 2026 18:25
-
-
Save kyeotic/f7e1254cfe712b3e028b6cb88adfe60f to your computer and use it in GitHub Desktop.
Clone Active Repos
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
| #!/usr/bin/env bash | |
| set -e | |
| # Usage | |
| # bash <(curl -s https://gist.githubusercontent.com/kyeotic/f7e1254cfe712b3e028b6cb88adfe60f/raw/clone-active.sh) | |
| DEST="${1:-$HOME/dev}" | |
| mkdir -p "$DEST" | |
| repos=( | |
| [email protected]:kyeotic/accomplice.git | |
| [email protected]:kyeotic/acquaint.git | |
| [email protected]:kyeotic/blog.git | |
| [email protected]:kyeotic/canopy.git | |
| [email protected]:kyeotic/chess2.git | |
| [email protected]:kyeotic/crank.git | |
| [email protected]:kyeotic/flowchart.git | |
| [email protected]:kyeotic/foodie.git | |
| [email protected]:kyeotic/full-stack-template.git | |
| [email protected]:kyeotic/homelab.git | |
| [email protected]:kyeotic/launch.git | |
| [email protected]:kyeotic/lesswrong.git | |
| [email protected]:kyeotic/portfolio.git | |
| [email protected]:kyeotic/poster.git | |
| [email protected]:kyeotic/raviger.git | |
| [email protected]:kyeotic/shovel.git | |
| [email protected]:kyeotic/smashdown.git | |
| [email protected]:kyeotic/snow-tracker.git | |
| [email protected]:kyeotic/spa-template.git | |
| [email protected]:kyeotic/spoons.git | |
| [email protected]:kyeotic/ssh-keys.git | |
| [email protected]:kyeotic/stack-sync.git | |
| [email protected]:kyeotic/vault-sync.git | |
| ) | |
| for repo in "${repos[@]}"; do | |
| name=$(basename "$repo" .git) | |
| target="$DEST/$name" | |
| if [ -d "$target" ]; then | |
| echo "SKIP: $name already exists" | |
| else | |
| echo "Cloning $name..." | |
| git clone "$repo" "$target" | |
| fi | |
| done | |
| echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment