summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rwxr-xr-xsh/sb7
1 files changed, 7 insertions, 0 deletions
diff --git a/sh/sb b/sh/sb
new file mode 100755
index 0000000..5c46adb
--- /dev/null
+++ b/sh/sb
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Ssh Branches
+
+for branch in $(git -C "$HOME/programs/config_local_arch" branch | awk '!/master/{print ($1=="*")?$2:$1}'); do
+ echo "sshing to server $branch..."
+ ssh -t "$branch" '. "$HOME/.profile";' "$@"
+done