结构化的 vim 配置文件,主要用于 Python、Ruby、Golang、Crystal 的代码编辑,本 vim 配置使用了 pathogen 管理插件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
307 B

#!/bin/bash
bundle="$1"
if [ -z $bundle ]; then
echo "please input module path which you would delete"
exit 1
fi
if [[ ! -d $bundle ]]; then
echo "please input right module path"
exit 1
fi
git submodule deinit -f "$bundle"
git rm -rf "$bundle"
rm -rf .git/modules/$bundle
git status