Skip to content

Instantly share code, notes, and snippets.

@helloIAmPau
Last active December 27, 2015 17:19
Show Gist options
  • Save helloIAmPau/7361551 to your computer and use it in GitHub Desktop.
Save helloIAmPau/7361551 to your computer and use it in GitHub Desktop.
dotFiles installer
#!/bin/bash
if [ `uname` == "Darwin" ]; then
VIM=/Applications/MacVim.app/Contents/MacOS/Vim;
else
VIM=vim;
fi
echo "Going to tmp folder..."
cd /tmp
echo "Cloning repo..."
git clone https://github.com/helloIAmPau/dotFiles.git
echo "Moving all files in the right location..."
cp -rv dotFiles/.[a-zA-Z0-9]* ~/
if [ `uname` == "Darwin" ]; then cp -rv dotFiles/Library ~/; fi
echo "Installing vundle for vim bundles..."
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
echo "Installing vim bundles..."
$VIM +BundleInstall +qall
echo "Installing oh-my-zsh"
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment