summaryrefslogtreecommitdiffstats
path: root/vim/add-plugin.sh
blob: 803d9d3212dfb5626218eaa3c3f12c7beeb3ad5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# adds a new vim plugin from a git repository

if [ $# -ne 2 ]
then
echo "Usage: `basename $0` <plugin-url> <plugin-name>"
	exit 65
fi

cd $(dirname $0)/..
git submodule add $1 $(dirname $0)/vim/vim/bundle/$2
git submodule init
git submodule update --rebase