Skip to content

Instantly share code, notes, and snippets.

@mkorthof
Created October 25, 2017 12:05
Show Gist options
  • Save mkorthof/df4fad902d293011fb591b39b1d4082f to your computer and use it in GitHub Desktop.
Save mkorthof/df4fad902d293011fb591b39b1d4082f to your computer and use it in GitHub Desktop.
alternative for screen + SSH_AUTH_SOCK
# this needs an alias:
# alias screen='echo "setenv SSH_AUTH_SOCK $SSH_AUTH_SOCK" > $HOME/.ssh/screen; screen -X source $HOME/.ssh/screen; screen'
bind H eval "source $HOME/.ssh/screen" "readbuf $SSH_AUTH_SOCK" 'stuff "export SSH_AUTH_SOCK=$SSH_AUTH_SOCK\n"' "echo 'SSH_AUTH_SOCK set!'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment