-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.zsh
executable file
·42 lines (29 loc) · 1006 Bytes
/
install.zsh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env zsh
MYDIR=${0:a:h}
echo $MYDIR
function link
echo "Linking spacemacs to ~/.emacs.d"
ln -sn ${MYDIR}/spacemacs $HOME/.emacs.d
echo "Linking .spacemacs to ~/.spacemacs"
ln -s ${MYDIR}/.spacemacs $HOME/
echo "Linking .tmux.conf to ~/.tmux.conf"
ln -s ${MYDIR}/.tmux.conf $HOME/
# echo "Linking .tmux/.tmux.conf to ~/.tmux.conf"
# ln -s ${MYDIR}/.tmux/.tmux.conf $HOME/
# echo "Linking .tmux/.tmux.conf.local to ~/.tmux.conf.local"
# ln -s ${MYDIR}/.tmux.conf.local $HOME/
echo "Linking .zshrc to ~/.zshrc"
ln -s ${MYDIR}/.zshrc $HOME/
echo "Linking .Xresources to ~/.Xresources"
ln -s ${MYDIR}/.Xresources $HOME/
echo "Linking .Xresources.d to ~/.Xresources.d"
ln -sn ${MYDIR}/.Xresources.d $HOME/
echo "Linking .cgdb to ~/.cgdb"
ln -sn ${MYDIR}/.cgdb $HOME/
echo "making dir ~/.config is not exsit"
mkdir $HOME/.config
echo "Linking items in .config to ~/.config"
for i in `ls .config`; do
echo "Linking ${i} to ~/.config/${i}"
ln -sn ${MYDIR}.config/${i} $HOME/.config/
done