2020-06-03 08:31:58 -06:00
|
|
|
#!/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%.*}\"`"
|
2020-11-29 11:19:37 -05:00
|
|
|
ln -sfn "$source" "$dest"
|
2020-06-03 08:31:58 -06:00
|
|
|
done
|
|
|
|
|
2020-07-25 15:32:16 -04:00
|
|
|
echo "symlinks ✓"
|
|
|
|
}
|
2020-06-07 18:16:03 -06:00
|
|
|
|
2020-07-25 15:32:16 -04:00
|
|
|
setup_configlinks() {
|
|
|
|
for source in $(find "$DOTS" -iname "*.configlink")
|
|
|
|
do
|
|
|
|
dest="$HOME/.config/`basename \"${source%.*}\"`"
|
2020-11-29 11:19:37 -05:00
|
|
|
ln -sfn "$source" "$dest"
|
2020-07-25 15:32:16 -04:00
|
|
|
done
|
2020-07-19 19:47:46 -04:00
|
|
|
|
2020-07-25 15:32:16 -04:00
|
|
|
echo "configlinks ✓"
|
2020-06-03 08:31:58 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
setup_symlinks
|
2020-07-25 15:32:16 -04:00
|
|
|
setup_configlinks
|
|
|
|
|