Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (23 sloc) 0.601 kb
#!/bin/bash
function link_file {
source="${PWD}/$1"
target="${HOME}/$1"
if [ -e "${target}" ]; then
mv $target $target.bak
fi
ln -sf ${source} ${target}
}
if [ -d ~/.dotfiles ]; then
cd ~/.dotfiles/.vim/bundle/vundle/
git pull origin master
cd ~/.dotfiles
git pull origin master
else
git clone https://github.com/danclaudiupop/dotfiles.git ~/.dotfiles
git clone https://github.com/gmarik/vundle.git ~/.dotfiles/.vim/bundle/vundle
cd ~/.dotfiles
for f in .vim .vimrc .tmux.conf .gitconfig .battery
do
link_file $f
done
fi
Jump to Line
Something went wrong with that request. Please try again.