Migrating over from pathogen to native, with git submodules
This commit is contained in:
15
vim-remove-submodule.sh
Normal file
15
vim-remove-submodule.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1x" -eq "x" ]; then
|
||||
echo "specify a module directory to remove"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d vim/pack/nichus/start/$1 ]; then
|
||||
echo "submodule $1 is not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git submodule deinit vim/pack/nichus/start/$1
|
||||
git rm vim/pack/nichus/start/$1
|
||||
rm -rf .git/modules/vim/pack/nichus/start/$1
|
||||
git commit
|
Reference in New Issue
Block a user