1
0
mirror of https://github.com/amix/vimrc synced 2025-02-28 14:12:51 +08:00

generate the plugin list

This commit is contained in:
plrectco 2019-05-08 21:08:16 -07:00
parent 1e40fd164d
commit 63394371e7
2 changed files with 28 additions and 0 deletions

23
gen_myplugin_list.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
# File : getmyconfigs.sh
# License: MIT
# Author : Xinyue Ou <xinyue3ou@gmail.com>
# Date : 06.01.2019
# if [ -f mypluginList ]; then
# mv mypluginList mypluginList.bak
# fi
touch mypluginList
output=$(pwd)/mypluginList
for dir in ~/.vim_runtime/my_plugins/*; do
echo $dir
if [ -d $dir ]; then
pushd $dir >> /dev/null
git config --get remote.origin.url >> $output
popd >> /dev/null
fi
done

5
getmyplugins.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
echo "Cloning $line"
git clone $line my_plugins/
done < "mypluginList"