blob: 4737971740f034daea3ff466a56f2638f2b223e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/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";' "$@"
done
|