Skip to content

Commit

Permalink
Merge pull request #4 from edorian/install-script
Browse files Browse the repository at this point in the history
A draft for a quick install script.
  • Loading branch information
tobyS committed Feb 7, 2012
2 parents e7a1571 + c440f92 commit 534582e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.rst
Expand Up @@ -18,6 +18,21 @@ licensing is noted in the specific files, if different than my own.

.. contents::

Installing the whole VIP package
================================

If you want to just use the whole VIP package, maybe because you don't have any
vim settings yet, you can use the ``install.sh`` command.

It will tell you to backup/remove your current vim configs and symlink the
necessary VIP folders to your home directory.::

git clone https://github.com/tobyS/vip.git
cd vip
./install.sh
# Don't remove your clone as the files are only symlinked


PDV - phpDocumentor for VIM
===========================

Expand Down
23 changes: 23 additions & 0 deletions install.sh
@@ -0,0 +1,23 @@
#!/bin/bash

vippath=`readlink -f $0`
vippath=`dirname $vippath`

if [ -f ~/.vimrc ]
then
echo "The ~/.vimrc file already exists. Backup or delete it to install VIP."
exit
fi

if [ -d ~/.vim ]
then
echo "The ~/.vim folder already exists. Backup or delete it to install VIP."
exit
fi

ln -s $vippath"/.vim" ~/.vim
ln -s $vippath"/.vimrc" ~/.vimrc

echo "Installed"
echo

0 comments on commit 534582e

Please sign in to comment.