From fe13f0095a56689e1959b0a263a30b351323dab8 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Tue, 15 Nov 2022 08:48:23 +0100 Subject: [PATCH] Add sshloop function --- dot_bashrc.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dot_bashrc.tmpl b/dot_bashrc.tmpl index e0da498..2037759 100644 --- a/dot_bashrc.tmpl +++ b/dot_bashrc.tmpl @@ -136,6 +136,15 @@ fi alias cdd='cd {{ .deploydir }}' export cdd={{ .deploydir }} +sshloop() { + while : + do + ssh $1 + echo "Reconnection in 5 seconds" + sleep 5 + done +} + # --------------------------------------------------------------------------- # COMPLETIONS # ---------------------------------------------------------------------------