Skip to content

Instantly share code, notes, and snippets.

@ikennaokpala
Created July 5, 2012 12:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikennaokpala/3053410 to your computer and use it in GitHub Desktop.
Save ikennaokpala/3053410 to your computer and use it in GitHub Desktop.
bootstrap_janus_vim
function die()
{
echo "${@}"
exit 1
}
# Add <strong>.old</strong> to any existing Vim file in the home directory
for i in $HOME/.vim $HOME/.vimrc $HOME/.gvimrc; do
if [[ ( -e $i ) || ( -h $i ) ]]; then
echo "${i} has been renamed to ${i}.old"
mv "${i}" "${i}.old" || die "Could not move ${i} to ${i}.old"
fi
done
# Clone Janus into .vim
git clone git@github.com:kengimel/janus.git $HOME/.vim \
|| die "Could not clone the repository to ${HOME}/.vim"
# Run rake inside .vim
cd $HOME/.vim || die "Could not go into the ${HOME}/.vim"
rake || die "Rake failed."
$ curl -Lo- http://bit.ly/bootstrap_vim | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment