2020-06-03 14:31:58 +00: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%.*}\"`"
|
|
|
|
rm -rf "$dest"
|
|
|
|
ln -s "$source" "$dest"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Spacemacs
|
|
|
|
rm -rf "$HOME/.spacemacs.d"
|
|
|
|
ln -s "$DOTS/spacemacs.d" "$HOME/.spacemacs.d"
|
|
|
|
|
|
|
|
# Vim
|
|
|
|
rm -rf "$HOME/.vim"
|
|
|
|
ln -s "$DOTS/vim" "$HOME/.vim"
|
|
|
|
|
2020-06-08 00:16:03 +00:00
|
|
|
rm -rf "$HOME/.config/nvim"
|
|
|
|
ln -s "$DOTS/vim" "$HOME/.config/nvim"
|
|
|
|
|
2020-06-03 14:31:58 +00:00
|
|
|
echo "symlinks ✓"
|
|
|
|
}
|
|
|
|
|
|
|
|
setup_symlinks
|