-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·81 lines (74 loc) · 1.5 KB
/
setup.sh
File metadata and controls
executable file
·81 lines (74 loc) · 1.5 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/sh
if ! git version >&-
then
echo "git version control does not exsit"
exit 1
fi
cd
if [ ! -d ~/.bash_it ]; then
while [ true ]; do
echo "Do you use bash(bash_it)?[Y/N]"
read REPLY
case $REPLY in
[yY])
git clone https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh
break
;;
[nN])
break
;;
*)
echo "Please enter Y or N"
;;
esac
done
fi
if [ ! -d ~/.oh-my-zsh ]; then
while [ true ]; do
echo "Do you use zsh(oh-my-zsh)?[Y/N]"
read REPLY
case $REPLY in
[Yy])
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
break
;;
[Nn])
break
;;
*)
echo "Please enter Y or N"
esac
done
fi
if [ ! -d ~/.emacs.d ]; then
while [ true ]; do
echo "Do you use doom emacs?[Y/N]"
read REPLY
case $REPLY in
[Yy])
# git clone https://github.com/syl20bnr/spacemacs.git ~/.emacs.d
git clone https://github.com/hlissner/.emacs.d ~/.emacs.d
mkdir -p ~/.config
ln -s ~/.vim/doom ~/.config/doom
break
;;
[Nn])
break
;;
*)
echo "Please enter Y or N"
esac
done
fi
# link config file
cd
mkdir -p .backups
F="bash_profile ctags gitconfig globalrc hgrc quiltrc tern-config tmux.conf Xresources zshenv zshrc"
for f in $F
do
if [ -f .$f ]; then
mv -f .$f .backups/
fi
ln -sf .vim/$f .$f && echo "LINK .$f"
done