abduco
abduco copied to clipboard
Added silent reconnect feature
Hey there! I added a simple feature I've been using for a while that just suppresses automatically switching to/from the alternate buffer on client connect/disconnect.
I do a lot of remote work over SSH with an unreliable internet connection, so I have a simple local script I run to establish a persistent SSH connection which generates a UUID session name based on the current shell's pid, so I can have multiple active connections:
while ! ssh -tt $@ -- '~/.local/bin/abduco' -A -s ${SSHP_SESSION:="$(uuidgen --sha1 --namespace @oid --name $$)"} bash -li;
do
:
done 2>&-
By adding this silent feature, when a disconnect happens, followed by a reconnect, nothing is changed in the terminal window, so it is easy to pick up where I left off.