From: Hendrik Jäger Date: Thu, 20 Jun 2024 15:33:28 +0000 (+0200) Subject: add function for registering puppet module repos in myrepos X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=HEAD;p=user%2Fhenk%2Fvcsh%2Fzsh.git add function for registering puppet module repos in myrepos --- diff --git a/.zsh_functions/mr_register_puppet_module b/.zsh_functions/mr_register_puppet_module new file mode 100644 index 0000000..5019756 --- /dev/null +++ b/.zsh_functions/mr_register_puppet_module @@ -0,0 +1,4 @@ +MODULE=$1 +cd ${MODULE} +GITURL=$(git remote get-url origin) +echo "[\$HOME/Data/personal/henk/workinprograss/configs/puppet_modules/${MODULE}]\ncheckout = git clone '${GITURL%.git}.git' '$MODULE'" > ~/.config/mr/available.d/puppet_${MODULE}.repo