-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.sh
executable file
·31 lines (23 loc) · 999 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
#!/usr/local/bin/bash
BASE=$PWD
BACKUP_EXT=$(date +%s)
# 1. Setup VIM
## Install plugin manager vim-plug which manages other vim plugins installed
mkdir -p ~/.vim/autoload
curl --insecure --create-dirs -fLo ~/.vim/autoload/plug.vim \
https://raw.github.com/junegunn/vim-plug/master/plug.vim
mv -v ~/.vimrc ~/.vimrc.${BACKUP_EXT} 2> /dev/null
ln -sf ${BASE}/vimrc ~/.vimrc
vim +PlugInstall +qall
# 2. bashrc
curl --insecure -fLo ~/git-completion.bash \
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
curl --insecure -fLo ~/completion.bash \
https://raw.githubusercontent.com/junegunn/fzf/master/shell/completion.bash
curl --insecure -fLo ~/key-bindings.bash \
https://raw.githubusercontent.com/junegunn/fzf/master/shell/key-bindings.bash
mv -v ~/.bashrc ~/.bashrc.${BACKUP_EXT} 2> /dev/null
ln -sf ${BASE}/bashrc ~/.bashrc
# 3. tmux.conf
mv -v ~/.tmux.conf ~/.tmux.conf.${BACKUP_EXT} 2> /dev/null
ln -sf ${BASE}/tmux.conf ~/.tmux.conf