Don't hard-code dotfile directory

This commit is contained in:
Sage Vaillancourt 2021-07-09 17:04:21 -04:00
parent b907885028
commit ff1b83b0b1
1 changed files with 4 additions and 1 deletions

View File

@ -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