hammerspoon and reorganize old files to legacy

This commit is contained in:
Noah Masur
2022-06-14 07:32:27 -04:00
parent c048b7244f
commit df59e376f2
52 changed files with 2 additions and 0 deletions

29
legacy/scripts/setup_symlinks Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
DOTS=$(dirname "$0")/..
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
DOTS="$PWD"
setup_symlinks() {
for source in $(find "$DOTS" -iname "*.symlink")
do
dest="$HOME/.`basename \"${source%.*}\"`"
ln -sfn "$source" "$dest"
done
echo "symlinks ✓"
}
setup_configlinks() {
for source in $(find "$DOTS" -iname "*.configlink")
do
dest="$HOME/.config/`basename \"${source%.*}\"`"
ln -sfn "$source" "$dest"
done
echo "configlinks ✓"
}
setup_symlinks
setup_configlinks