myshellconfig/bin/vim-plugins-install

12 lines
311 B
Bash
Executable file

#!/bin/bash
grep -v "^\"" vimplugins |while read cmd type url;do
case $cmd in
install)
git submodule add $url vim/pack/${type}/$(basename ${url%.git})
;;
remove)
git submodule-remove vim/pack/${type}/$(basename ${url%.git})
;;
esac
done