summaryrefslogtreecommitdiff
path: root/sh/u
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-06-24 18:59:24 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-06-24 18:59:24 -0700
commiteeac5b9ab0ba386dc4fe86efcbb79005ba23e779 (patch)
treedf2b401ac3c408fbd09c70922a69004e2092c51c /sh/u
parentd08f3dc5bf7d0718a4fa788f41b2abf295cd13e0 (diff)
refactor
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