bin/bootstrap/replicate.sh

9 lines
386 B
Bash
Raw Normal View History

#!/bin/sh
tempfolder="/tmp/dots"
gitdir="$HOME/.dotfiles"
2018-07-18 21:33:05 -05:00
git clone --recursive --separate-git-dir="$gitdir" git@gitlab.com:rehashedsalt/home.git $tempfolder
rsync -rvl --exclude ".git" $tempfolder/ $HOME/
rm -r $tempfolder
git --git-dir="$gitdir" --work-tree="$HOME" submodule update --init --recursive --remote
git --git-dir="$gitdir" --work-tree="$HOME" status.showUntrackedFiles no