Created
July 5, 2012 12:24
-
-
Save ikennaokpala/3053410 to your computer and use it in GitHub Desktop.
bootstrap_janus_vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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