summaryrefslogtreecommitdiff
path: root/sh/u
diff options
context:
space:
mode:
Diffstat (limited to 'sh/u')
-rwxr-xr-xsh/u6
1 files changed, 3 insertions, 3 deletions
diff --git a/sh/u b/sh/u
index b5c068d..6fe79ea 100755
--- a/sh/u
+++ b/sh/u
@@ -3,8 +3,8 @@
ssh-add -l || ssh-add
-#for host in $(git -C "$HOME/programs/config_local_arch" branch | awk '{print ($1=="*")?$2:$1}' | grep -v master); do
-git -C "$HOME/programs/config_local_arch" branch | awk '{print ($1=="*")?$2:$1}' | grep -v master | while read -r host; do
+#for branch in $(git -C "$HOME/programs/config_local_arch" branch | awk '{print ($1=="*")?$2:$1}' | grep -v master); do
+git -C "$HOME/programs/config_local_arch" branch | awk '{print ($1=="*")?$2:$1}' | grep -v master | while read -r branch; do
# alacritty use -T to change window name so I can identify different servers
# need to invoke bash afterwards for manual things like reboot if linux upgrades and pacdiff
# maybe can automate further so no need manual things
@@ -13,7 +13,7 @@ git -C "$HOME/programs/config_local_arch" branch | awk '{print ($1=="*")?$2:$1}'
# maybe another way:
# https://superuser.com/questions/241187/how-do-i-reload-inputrc
# because I invoke bash, no need alacritty --hold
- o alacritty -T "$host" -e ssh -t "$host" '. "$HOME/.profile" && upd; "$SHELL" -l'
+ o alacritty -T "$branch" -e ssh -t "$branch" '. "$HOME/.profile" && upd; "$SHELL" -l'
done
upd