forked from awesomescot-zz/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·51 lines (41 loc) · 1.45 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
#!/bin/bash
# if we are in osx
#install homebrew
#ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#install zsh
brew install zsh zsh-completions
#install oh-my-zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
for i in .vim .vimrc .gvimrc .bashrc .bash_profile .tmux.conf .zshrc; 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 clone [email protected]:awesomescot/dotfiles.git .dotfiles
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
# create vim temp dir
mkdir -p ${HOME}/tmp/vim
#setup tmux
ln -s ${HOME}/.dotfiles/tmux/conf ${HOME}/.tmux.conf
#setup bash
ln -s ${HOME}/.dotfiles/bash/bashrc ${HOME}/.bashrc
ln -s ${HOME}/.dotfiles/bash/profile ${HOME}/.bash_profile
#setup zsh
ln -s ${HOME}/.dotfiles/zshrc ${HOME}/.zshrc
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