home/.bin/bootstrap/replicate.sh
Salt 92c53a5db9 Bootstrap: Add replication script
Hopefully this shit works. It's completely untested
2017-12-26 18:08:27 -06:00

6 lines
283 B
Bash
Executable File

#!/usr/bin/env bash
git clone --recursive --separate-git-dir="$HOME/.dotfiles" git@github.com:rehashedsalt/home.git /tmp/dots
rsync -rvl --exclude ".git" /tmp/dots/ $HOME/
rm -r /tmp/dots
git submodule update --init --recursive --git-dir="$HOME/.dotfiles" --work-tree="$HOME" $HOME/