Using GNU Stow now. Its awesome 💥

This commit is contained in:
Abhay Rana 2014-06-08 15:02:04 +05:30
parent 16374bc2ea
commit 0fe1874a6d
1 changed files with 2 additions and 15 deletions

View File

@ -1,16 +1,3 @@
#!/bin/bash
cd "$(dirname "$0")"
function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt
fi
fi
unset doIt
source ~/.bashrc
cd files
stow * --target ~