Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d5cf448fd1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (18 sloc) 0.587 kB
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 https://github.com/carlhuda/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."
Jump to Line
Something went wrong with that request. Please try again.