finished install script

moveTools
Adam Veldhousen 2015-05-13 19:54:48 -05:00
parent ff215f1b43
commit 360c66c48b
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B
1 changed files with 16 additions and 0 deletions

16
bootstrap.sh Executable file
View File

@ -0,0 +1,16 @@
bkup=~/.dotfile_bkup
dest=~/
source=$(pwd)
echo ${source}
echo "making a backup of old dotfiles"
mkdir -p $bkup
ls -A ~/ | grep ^\\..* | xargs -I file cp ~/file $bkup
echo "loading modules"
git submodule init
git submodule update
echo "linking dotfiles..."
ls -A ${source} | xargs -I file cp --symbolic-link -r ${source}/file ${dest}