From 2a4b87849c74d5d6835803b311bb6801689f237a Mon Sep 17 00:00:00 2001 From: jvan Date: Thu, 16 Jun 2011 14:46:26 -0700 Subject: [PATCH] Added install script. --- .gitmodules | 3 +++ bundle/vcscommand | 1 + install.sh | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 160000 bundle/vcscommand create mode 100755 install.sh diff --git a/.gitmodules b/.gitmodules index e196185..04cc8dc 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "bundle/zencoding"] path = bundle/zencoding url = http://github.com/mattn/zencoding-vim.git +[submodule "bundle/vcscommand"] + path = bundle/vcscommand + url = git://repo.or.cz/vcscommand diff --git a/bundle/vcscommand b/bundle/vcscommand new file mode 160000 index 0000000..bc6ac15 --- /dev/null +++ b/bundle/vcscommand @@ -0,0 +1 @@ +Subproject commit bc6ac15fc5a1575a7e4f1f882ea411b301cd253a diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..9cf379a --- /dev/null +++ b/install.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Install script for VIM config files +# + +# Get name of directory where install script is located +VIM_DIR=`dirname $0` + +# Create symbolic links to .vimrc and .gvimrc files + +echo " -- linking $VIM_DIR/vimrc to $HOME/.vimrc" +ln -s $VIM_DIR/vimrc $HOME/.vimrc + +echo " -- linking $VIM_DIR/gvimrc to $HOME/.gvimrc" +ln -s $VIM_DIR/gvimrc $HOME/.gvimrc + +# Initialize and update submodules + +pushd $VIM_DIR + +echo " -- initializing git submodules" +git submodule init + +echo " -- updating git submodules" +git submodule update + +popd