diff options
-rw-r--r-- | .zsh_functions/vcsh_mr_sync | 2 |
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 |