Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8a0532451c
Fetching contributors…

Cannot retrieve contributors at this time

executable file 52 lines (40 sloc) 1.087 kb
#!/usr/bin/env bash
## Check Bash Version
if [ "$BASH_VERSION" = "" ]
then
echo "I work only with Bash"
exit 1
fi
## Check Git is installed
if [[ $(which git) == "" ]]
then
echo "Please ensure that git is installed"
exit 1
fi
## Check OS
if [[ "$OSTYPE" == "darwin10.0" ]]
then
export OS="mac"
if [[ $(which brew) == "" ]]
then
echo "Please install brew ( http://mxcl.github.com/homebrew ) before proceeding."
exit 1
fi
elif [[ "$OSTYPE" == "linux-gnu" ]]
then
export OS="linux"
else
echo "Don't know what to do with '$OSTYPE' operating system"
exit 1
fi
# Assumption of directory location
DOTVIM="$HOME/code/dotvim"
cd $DOTVIM
## Install vim files
echo "Installing vimrc"
ln -s -f "$DOTVIM/vimrc" "$HOME/.vimrc"
ln -s -f "$DOTVIM/gvimrc" "$HOME/.gvimrc"
# Put swap files in a specific location, to avoid Dropbox from spinning incessantly.
mkdir -p "$HOME/.vim/swapfiles/"
echo "Open Vim in a separate window NOW, keep pressing 'y' and return key until Vim exits. Press enter key in this window when done."
unset OS
Jump to Line
Something went wrong with that request. Please try again.