forked from leandromoreira/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·51 lines (39 loc) · 921 Bytes
/
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
47
48
49
#install basic toolset
os=`uname`
ln -sF `pwd` ~/dotfiles
if [[ "$os" == 'Linux' ]]; then
. ~/dotfiles/apt-get.sh
elif [[ "$os" == 'Darwin' ]]; then
. ~/dotfiles/brew.sh
fi
#vim config file
if [ ! -f ~/.vimrc ];
then
ln -s ~/dotfiles/.vimrc ~/.vimrc
fi
#zsh config
if [ ! -f ~/.zshrc ];
then
ln -s ~/dotfiles/.zshrc ~/.zshrc
fi
ln -sF ~/dotfiles/.vim ~/.vim
ln -sF ~/dotfiles/bundle ~/.vim/bundle
if [ ! -d ~/dotfiles/.vim/tmp ];
then
mkdir ~/dotfiles/.vim/tmp
fi
if [ ! -d ~/dotfiles/.vim/backup ];
then
mkdir ~/dotfiles/.vim/backup
fi
#git config file
if [ ! -f ~/.gitconfig ];
then
ln -s ~/dotfiles/.gitconfig ~/.gitconfig
fi
git clone https://github.com/VundleVim/Vundle.vim.git bundle/Vundle.vim
#installing oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cp .mackup.cfg ~/.mackup.cfg
mackup restore
vim +PluginInstall +qall