dotfiles/run_once_clone-repos.sh

18 lines
598 B
Bash

#! /bin/bash
clone_maybe () {
if [ ! -d "$2" ]; then
echo cloning git repo: "$1"
git clone --recurse-submodules "$1" "$2"
else
echo git repo already exists: "$1"
fi
}
clone_maybe https://github.com/ndwarshuis/conky.git "$HOME/.config/conky"
clone_maybe https://github.com/ndwarshuis/.emacs.d.git "$HOME/.config/emacs"
clone_maybe https://github.com/ndwarshuis/rofi-extras.git "$HOME/.config/rofi-extras"
clone_maybe https://github.com/ndwarshuis/xman.git "$HOME/.config/xman"
clone_maybe https://github.com/ndwarshuis/xmonad-config.git "$HOME/.config/xmonad"