summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsh/sb5
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/sb b/sh/sb
index 5c46adb..4737971 100755
--- a/sh/sb
+++ b/sh/sb
@@ -1,6 +1,11 @@
#!/bin/sh
# Ssh Branches
+case "$1" in
+ # also run commands in current Master computer
+ '-m') shift; "$@";;
+esac
+
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";' "$@"