1
for i in ~/.config/vcsh/repo.d/*.git; do reponame=${i:t:r}; sed -e "s/NAME/${reponame}/g" ~/.config/mr/available.d/vcsh-TEMPLATE > ~/.config/mr/available.d/${reponame}.vcsh ; done