diff --git a/gen_myplugin_list.sh b/gen_myplugin_list.sh new file mode 100644 index 00000000..4064f9b1 --- /dev/null +++ b/gen_myplugin_list.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# File : getmyconfigs.sh +# License: MIT +# Author : Xinyue Ou +# 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 diff --git a/getmyplugins.sh b/getmyplugins.sh new file mode 100644 index 00000000..517d245a --- /dev/null +++ b/getmyplugins.sh @@ -0,0 +1,5 @@ +#!/bin/bash +while IFS='' read -r line || [[ -n "$line" ]]; do + echo "Cloning $line" + git clone $line my_plugins/ +done < "mypluginList"