summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2021-12-30 14:15:35 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2021-12-30 14:15:35 +0100
commit5a43e15d168f17c16ba0a5b018f9e36bfa60613e (patch)
tree516b6bc5374439ceaecc8a984e48fda1ec003c72
parentbac07aae0e326dc5ebb8479a065a5459722023ed (diff)
improve
-rw-r--r--.zsh_functions/vcsh_mr_sync2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zsh_functions/vcsh_mr_sync b/.zsh_functions/vcsh_mr_sync
index 8a2e08a..7f15df0 100644
--- a/.zsh_functions/vcsh_mr_sync
+++ b/.zsh_functions/vcsh_mr_sync
@@ -1 +1 @@
-for i in ~/.config/vcsh/repo.d/*.git; do reponame=${${i%.git/}##*/}; sed -e "s/NAME/${reponame}/g" ~/.config/mr/available.d/vcsh-TEMPLATE ; done
+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