-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlink.sh
executable file
·28 lines (25 loc) · 861 Bytes
/
link.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
if [ ! -f ~/.spacemacs ]; then
ln -s `pwd`/.spacemacs ~/
echo "Linked ~/.spacemacs"
else
echo "~/.spacemacs already exists"
fi
if [ ! -d ~/.emacsprivate/private ]; then
ln -s `pwd`/private ~/.emacsprivate/
echo "Linked ~/.emacsprivate/private"
else
echo "~/.emacsprivate/private already exists, deleting and linking"
rm -rf ~/.emacsprivate/private
ln -s `pwd`/private ~/.emacsprivate/
echo "Linked ~/.emacsprivate/private"
fi
if [ ! -d ~/.emacs.d/private/snippets/ ]; then
ln -s `pwd`/private/snippets ~/.emacs.d/private/snippets
echo "Linked ~/.emacs.d/private/snippets"
else
echo "~/.emacs.d/private/snippets already exists, deleting and linking"
rm -rf ~/.emacs.d/private/snippets
ln -s `pwd`/private/snippets ~/.emacs.d/private/snippets
echo "Linked ~/.emacs.d/private/snippets"
fi