summaryrefslogtreecommitdiff
path: root/bin/ssh-and-tmux
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-10-15 16:45:33 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-10-16 22:04:29 -0700
commit23ed3d505d8c1732fc6ea842b52dfa29a1d4c629 (patch)
tree44f4782d4298ebec2c342c5cdf1cf824b7248338 /bin/ssh-and-tmux
parent57365f483ac15f86d4647eee37cf2f829d287b21 (diff)
downloaddotfiles-23ed3d505d8c1732fc6ea842b52dfa29a1d4c629.tar.gz
ssh-and-tmux: mosh_hosts is meant to be an array, & improve comment
Diffstat (limited to 'bin/ssh-and-tmux')
-rwxr-xr-xbin/ssh-and-tmux11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/ssh-and-tmux b/bin/ssh-and-tmux
index 5b8aa7a1..13b6de4d 100755
--- a/bin/ssh-and-tmux
+++ b/bin/ssh-and-tmux
@@ -27,11 +27,12 @@
-# Space-separated list of hosts I want to mosh to. Be conservative: it's not
-# just that mosh is available on that machine and it's not a highly
-# security-sensitive machine, but also that, e.g., the host reboots less often
-# than the workstation that'll be connecting, to avoid zombie clients.
-mosh_hosts="athena.silentflame.com"
+# Hosts I want to mosh to.
+# Be conservative: it's not just that mosh is available on that machine and
+# it's not a highly security-sensitive machine, but also that, e.g., the host
+# reboots not much more often than the workstation that'll be connecting, to
+# minimise zombie clients.
+mosh_hosts=(athena.silentflame.com)
getopt=$(getopt -s bash -o "" \
-l 'container-cmd:,container-name:' -n ssh-and-tmux -- "$@")