forked from yubo/home
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
executable file
·46 lines (40 loc) · 1.08 KB
/
install.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
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
#git clone [email protected]:laiwei/unix_home.git ~/.laiwei_unix_home
install_file()
{
src=`pwd`"/"$1
des="$HOME/$1"
echo "
src $src
des $des"
if [ -f $des -o -d $des ]; then
mv -f $des $des".backup"
fi
ln -s $src $des
}
install_file .screenrc
install_file .vimrc
install_file .myownrc
install_file .ssh/config
install_file .zshrc
install_file .vim
install_file .bash_profile
install_file .bashrc
install_file .dircolors
install_file .tmux.conf
install_file .git-completion.bash && echo "source ~/.git-completion.bash" >> ~/.bashrc
install_file .fonts
install_file .gitignore
install_file .gitconfig
install_file .dircolors
install_file .bin
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
if [ -d "$GOROOT" ]; then
mkdir -p $HOME/.vim/ftdetect
mkdir -p $HOME/.vim/syntax
mkdir -p $HOME/.vim/autoload/go
ln -s $GOROOT/misc/vim/ftdetect/gofiletype.vim $HOME/.vim/ftdetect/
ln -s $GOROOT/misc/vim/syntax/go.vim $HOME/.vim/syntax
ln -s $GOROOT/misc/vim/autoload/go/complete.vim $HOME/.vim/autoload/go
echo "syntax on" >> $HOME/.vimrc
fi