Skip to content

Commit

Permalink
fixed and updated dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjtait committed Jun 23, 2015
1 parent 1b92252 commit c4dad20
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Empty file added .vim/tmp/.gitkeep
Empty file.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Installation
============

Run ```sh install.sh```
Update personalised GitHub details in ```.gitconfig```

Update details in ```.gitconfig```

Install vim plugins at ```.vim/bundle/*```
Run ```./install.sh``` to install.
14 changes: 12 additions & 2 deletions install.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
#!/usr/bin/env bash
#!/bin/sh

cd "$(dirname "${BASH_SOURCE}")"
git pull origin master

function doIt() {
echo "-- Synchronizing files/folders..."
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "install.sh" \
--exclude "README.md" -av --no-perms . ~
echo "-- Setting up vim plugins..."
rm -rf ~/.vim/bundle/Vundle.vim
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
echo "-- Reloading bash profile..."
source ~/.bash_profile
echo "-- All done!"
}

if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt
else
Expand All @@ -15,4 +24,5 @@ else
doIt
fi
fi

unset doIt

0 comments on commit c4dad20

Please sign in to comment.