Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added silent reconnect feature #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rgambord
Copy link

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