Skip to content

Instantly share code, notes, and snippets.

@echochamber
Forked from sonots/dotfiles.sh
Created August 8, 2014 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save echochamber/3b711dc5d648b9d5e449 to your computer and use it in GitHub Desktop.
Save echochamber/3b711dc5d648b9d5e449 to your computer and use it in GitHub Desktop.
#!/bin/sh
[[ -e ~/.dotfiles ]] || git clone git@github.com:sonots/.dotfiles.git ~/.dotfiles
pushd ~/.dotfiles
git submodule init
git submodule update
for i in `ls -a`
do
[ $i = "." ] && continue
[ $i = ".." ] && continue
[ $i = ".git" ] && continue
[ $i = "README.md" ] && continue
ln -s ~/.dotfiles/$i ~/
done
vim -c ':BundleInstall!' -c ':q!' -c ':q!'
if [ `uname` = "Darwin" ]; then
pushd ~/.dotfiles/.vim/bundle/vimproc
make -f make_mac.mak
popd
fi
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment