From 005cfad1471fa330d2c69ffa4e1928a3b49888b6 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 20 Nov 2014 23:40:30 +0000 Subject: [PATCH] etc/bashrc.function --- etc/bashrc.function | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/etc/bashrc.function b/etc/bashrc.function index 50427ab8..3434facd 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -33,11 +33,15 @@ git-clone-nbdom() { } git-commit-push() { - git add . git commit -m "$@" -a git push || echo "Try: git push --set-upstream origin master" } +git-commit-push-add() { + git add . + git-commit-push "$@" +} + env-add-path() { # Add paths to a variables # Usage PATH=`sem-env-add-path "$PATH" "/blbabla"` @@ -120,3 +124,13 @@ function bytes2h() { s/$exp/oct2h($1)/ge; ' $args } + +puppet-upgrade-modules() { + local m + local pwd=$PWD + cd /etc/puppet/modules + for m in $(puppet module list | awk '/\(.*v/ {print $2}'); do + puppet module upgrade "$m" + done + cd $pwd +} -- 2.47.3