Skip to content

Added silent reconnect feature#60

Open
rgambord wants to merge 1 commit into
martanne:masterfrom
rgambord:master
Open

Added silent reconnect feature#60
rgambord wants to merge 1 commit into
martanne:masterfrom
rgambord:master

Conversation

@rgambord

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant