-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.sh
executable file
·59 lines (46 loc) · 1.65 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
for i in .vim .vimrc .gvimrc .bashrc .bash_profile .muttrc; do
if [ -f ${HOME}/${i} ] ; then
echo "moving ${HOME}/${i} to ${HOME}/${i}.bkup"
mv ${HOME}/${i} ${HOME}/${i}.bkup
fi
done
if [ ! -d ${HOME}/.dotfiles ] ; then
echo "NO DOTFILES - checking out for you"
cd ${HOME} && git checkout https://github.com/maguec/dotfiles.git .dotfiles
fi
if [ ! -d ${HOME}/.oh-my-bash ] ; then
echo "Setup Oh My Bash"
git clone https://github.com/ohmybash/oh-my-bash.git ~/.oh-my-bash
fi
if [ ! -d ${HOME}/.tmux/plugins/tpm ] ; then
echo "Setup Tmux Plugin Manager"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
#setup vim
ln -s ${HOME}/.dotfiles/vim/vimrc ${HOME}/.vimrc
ln -s ${HOME}/.dotfiles/vim/gvimrc ${HOME}/.gvimrc
ln -s ${HOME}/.dotfiles/vim ${HOME}/.vim
ln -s ${HOME}/.dotfiles/vim ${HOME}/.neovimrc
#setup bash
ln -s ${HOME}/.dotfiles/bash/bashrc ${HOME}/.bashrc
ln -s ${HOME}/.dotfiles/bash/profile ${HOME}/.bash_profile
#setup mutt
ln -s ${HOME}/.dotfiles/mutt/mutt ${HOME}/.muttrc
#setup tmux
ln -s ${HOME}/.dotfiles/tmux/conf ${HOME}/.tmux.conf
ln -s ${HOME}/.dotfiles/tmux/teamocil ${HOME}/.teamocil
#setup alacritty
ln -s ${HOME}/.dotfiles/alacritty.yml ${HOME}/.alacritty.yml
#setup ctags
ln -s ${HOME}/.dotfiles/vim/ctags ${HOME}/.ctags
if [ ! -d ${HOME}/.vim/bundle/vundle ]; then
echo "Installing vundle"
cd ${HOME} &&git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
fi
# L9 is borked on the old version of Centos and that's
# the only version of redhat I run anywhere
if [ -f /etc/redhat-release ] ; then
rm -rf ${HOME}/.dotfiles/vim/bundle/FuzzyFinder
rm -rf ${HOME}/.dotfiles/vim/bundle/L9
fi