-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
36 lines (27 loc) · 792 Bytes
/
setup.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
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
_ln=ln
if [ "$(uname)" = Darwin ]; then
_ln=gln
fi
safe ${_ln} -sfb -T $DOTFILE_TOP/tmux.conf ~/.tmux.conf
banner "Bash setup"
_bash_files=(bash_profile bashrc bash_aliases)
for f in "${_bash_files[@]}"
do
safe ${_ln} -sfb -T $DOTFILE_TOP/$f ~/.$f
done
banner "Vim setup"
_vim_files=(vim vimrc)
for f in "${_vim_files[@]}"
do
safe ${_ln} -sfb -T $DOTFILE_TOP/$f ~/.$f
done
if [ ! -d $DOTFILE_TOP/vim/bundle ]; then
banner "Install Vundle from Gitee"
safe git clone https://gitee.com/e1iu/Vundle.vim.git $DOTFILE_TOP/vim/bundle/Vundle.vim
fi
banner "Install Vim Plugins"
safe vim +PluginInstall +qall
# fzf/install script will download fzf from https://github.com/junegunn/fzf/releases
banner "Install fzf"
safe bash $DOTFILE_TOP/vim/bundle/fzf/install