Migrating over from pathogen to native, with git submodules

This commit is contained in:
2017-03-28 10:48:25 -06:00
parent 75ca5375e5
commit 5e829dd680
32 changed files with 139 additions and 6 deletions

11
vim-add-submodule.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ "$1x" -eq "x" ]; then
echo "specify a git repo on the command line"
exit 1
fi
repository=$(basename $(dirname $1))
project=${$(basename $1)%.git}
smpath="vim/pack/nichus/start/${repository}-${project}"
git submodule add $1 $smpath
git add .gitmodules $smpath