-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy_vimrc.sh
31 lines (30 loc) · 981 Bytes
/
deploy_vimrc.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
#!/bin/bash -
#===============================================================================
#
# FILE: deploy_vimrc.sh
#
# USAGE: ./deploy_vimrc.sh
#
# DESCRIPTION: Backup for your ~/.vim and ~/.vimrc, and make symbolic link
# ~/.vim link to ./vim, and ~/.vimrc link to ./vim/vimrc
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Tengwei Cai (twcai), [email protected]
# ORGANIZATION:
# CREATED: 04/23/2015 14:01:06 CST
# REVISION: ---
#===============================================================================
echo "======= Start deploy new VIM configurations ======"
echo "mv ~/.vim ~/.vim.bak"
mv ~/.vim ~/.vim.bak
echo "mv ~/.vimrc ~/.vimrc.bak"
mv ~/.vimrc ~/.vimrc.bak
PWD=`pwd`
echo "ln -s $PWD/vim ~/.vim"
ln -s $PWD/vim ~/.vim
echo "ln -s $PWD/vim/vimrc ~/.vimrc"
ln -s $PWD/vim/vimrc ~/.vimrc
echo "===== Finished deploy the VIM configurations ====="