Skip to content

Instantly share code, notes, and snippets.

@nnja
Created March 13, 2017 21:05
Show Gist options
  • Save nnja/4c61ae4410f2295db2ed81c740c30019 to your computer and use it in GitHub Desktop.
Save nnja/4c61ae4410f2295db2ed81c740c30019 to your computer and use it in GitHub Desktop.
Update SSH_AUTH_SOCK in tmux session
alias fixssh='eval $(tmux showenv -s SSH_AUTH_SOCK)'
Or for tmux that does not have showenv -s:
alias fixssh='export $(tmux showenv SSH_AUTH_SOCK)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment