summaryrefslogtreecommitdiff
path: root/sh/u
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-06-24 17:39:37 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-06-24 17:39:37 -0700
commit9954a1eca1badfd340744fbc46cf4d61e5e0542d (patch)
treed6595755b54f7fc07500f80e5c5070eb09b78f16 /sh/u
parentaacc37b247749c96e66e1ff9d4391110ddbe3f1a (diff)
feat: u auto get host name
Diffstat (limited to 'sh/u')
-rwxr-xr-xsh/u2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/u b/sh/u
index 59fcd20..4b201d9 100755
--- a/sh/u
+++ b/sh/u
@@ -3,7 +3,7 @@
ssh-add -l || ssh-add
-for host in studio pp ia ca; do
+for host in $(git -C "$HOME/programs/config_local_arch" branch | awk '{print ($1=="*")?$2:$1}' | grep -v master); 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