From 547e49d2a30cb6a2df77945d46de1c043a5e33bc Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 6 Oct 2021 09:40:58 -0400 Subject: [PATCH] More consistent copying behavior --- copy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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