Skip to content

Commit

Permalink
Added install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvan committed Jun 16, 2011
1 parent a359daa commit 2a4b878
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions bundle/vcscommand
Submodule vcscommand added at bc6ac1
27 changes: 27 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2a4b878

Please sign in to comment.