summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh_functions/mr_register_puppet_module4
1 files changed, 4 insertions, 0 deletions
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