Find file
7ed2cd8 Sep 27, 2015
@kalbasit @adrianrego @Sporky023 @jcortesg @gregstallings
executable file 24 lines (19 sloc) 652 Bytes
function die()
echo "${@}"
exit 1
# Add .old to any existing Vim file in the home directory
for filepath in "${HOME}/.vim" "${HOME}/.vimrc" "${HOME}/.gvimrc"; do
if [ -e $filepath ]; then
mv "${filepath}" "${filepath}.old" || die "Could not move ${filepath} to ${filepath}.old"
echo "${filepath} has been renamed to ${filepath}.old"
# Clone Janus into .vim
git clone --recursive "${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."