-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·48 lines (35 loc) · 1.05 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
47
48
#!/bin/bash
# check pre-reqs
if [[ ! -e ~/.vim/bundle/Vundle.vim ]]; then
echo "Installing Vundle"
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi
if [[ ! -e ~/.oh-my-zsh ]]; then
echo "Installing oh-my-zsh.."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
rm -rf ~/.oh-my-zsh/custom
ln -s ~/dotfiles/zsh ~/.oh-my-zsh/custom
fi
if [[ ! -e ~/.zshrc ]]; then
echo "Installing linking zshrc.."
ln -s ~/dotfiles/zshrc ~/.zshrc
fi
if [[ ! -e ~/.tmux.conf ]]; then
echo "Installing linking tmux"
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
fi
if [[ ! -e ~/.vimrc ]]; then
echo "Linking vim config.."
ln -s ~/dotfiles/vimrc ~/.vimrc
fi
if [[ ! -e ~/.vimbkup ]]; then
echo "Creating backup directory.."
mkdir ~/.vimbkup
fi
mkdir -p ~/.git/hooks
ln -f -s ~/dotfiles/git/config ~/.git/config
ln -f -s ~/dotfiles/git/pre-commit.git.sh ~/.git/hooks/pre-commit
echo "Manual Steps: "
echo "- launch vim and :PluginInstall"
# vim backup
# vim: ts=2 sw=2 expandtab #