Skip to content

Instantly share code, notes, and snippets.

@8dcc
Last active April 23, 2022 16:13
Show Gist options
  • Save 8dcc/3fe7c1e476f034fed5ddfeb91b96acbb to your computer and use it in GitHub Desktop.
Save 8dcc/3fe7c1e476f034fed5ddfeb91b96acbb to your computer and use it in GitHub Desktop.
Bash script for cloning my most important repos (a lot). Mostly for local backups.
#!/bin/bash
repos=(
"vat"
"v-stuff"
"browser-homepage"
"discord-bot"
"vim-dotfiles"
"dotfiles"
"langtons-ant-c"
"nginx-website-ssl"
"c-stuff"
"arch-dotfiles"
"r4v10l1"
"cmder-dotfiles"
"rule110"
"interference-noise"
"4chan-downloader"
"codewars-brainfuck"
"codewars-c"
"dwm-lite"
"file-encrypter"
"game-of-life"
"gmod-e2"
"gmod-lua"
"mindustry-image-generator"
"nDownloader"
"PasswordGenerator"
"python-dehasher"
"text2asciiart"
"text2brainfuck"
"rust-guess-game"
"LangtonsAnt"
)
if [[ $(command -v git) != "" ]]; then
echo -ne "You are about to clone ${#repos[@]} repositories. Press any key to continue..."
read balls
else
echo -e "I can't find git. Exiting..."
exit 1
fi
for repo in ${repos[@]}; do
git clone https://github.com/r4v10l1/$repo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment