diff --git a/copy.sh b/copy.sh index 2276884..1ca869d 100755 --- a/copy.sh +++ b/copy.sh @@ -1,3 +1,6 @@ #!/bin/bash -ln -sf ~/.dotfiles/.* ~/ -yes | rm -r ~/.git +SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" + +for f in $(find $SCRIPT_DIR -mindepth 1 -name ".*" -not -name ".git"); do + ln -sf $f ~/ +done