1
0
mirror of https://github.com/amix/vimrc synced 2025-02-28 14:12:51 +08:00
amix-vimrc-mirror/gen_myplugin_list.sh
2019-05-08 21:08:16 -07:00

24 lines
451 B
Bash

#!/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