From ff1b83b0b1a9ba95f2e05c099e18eb9e322a3f23 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 9 Jul 2021 17:04:21 -0400 Subject: [PATCH] Don't hard-code dotfile directory --- copy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/copy.sh b/copy.sh index 2276884..7c434b9 100755 --- a/copy.sh +++ b/copy.sh @@ -1,3 +1,6 @@ #!/bin/bash -ln -sf ~/.dotfiles/.* ~/ + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" + +ln -sf $SCRIPT_DIR/.* ~/ yes | rm -r ~/.git