1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 12:30:32 +01:00
Files
vimconfig/install.sh
2015-01-03 22:08:22 +01:00

28 lines
410 B
Bash
Executable File

#!/bin/bash
if [ -f $HOME/.vimrc ]
then
echo "Already have a local vimrc, abort."
exit 1
fi
if [ ! -f $HOME/.vim/vimrc ]
then
echo "Vimconfig rc not found, abort."
exit 2
fi
echo "Installing .vimrc"
ln -s $HOME/.vim/vimrc $HOME/.vimrc
echo -n "Downloading dependencies..."
cd $HOME/.vim
git submodule init > /dev/null
git submodule update > /dev/null
echo " Done"
echo
echo "Installation finished."