summaryrefslogtreecommitdiff
path: root/install.sh
blob: 20afd9e0ba3ac1f13e21d48ce2548815c52cc6b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

dir=~/dotfiles                    # dotfiles directory
olddir=~/dotfiles_old             # old dotfiles backup directory
files="bashrc vimrc vim zshrc xmodmap"    # list of files/folders to symlink in homedir

mkdir -p $olddir
cd $dir
for file in $files; do
    echo $file
    mv ~/.$file ~/dotfiles_old/
    ln -s $dir/.$file ~
done

rm -rf .vim/bundle
mkdir .vim/bundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
vim +PluginInstall +qall