Skip to content

Instantly share code, notes, and snippets.

@lann
Created September 30, 2013 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lann/6771001 to your computer and use it in GitHub Desktop.
Save lann/6771001 to your computer and use it in GitHub Desktop.
#!/bin/bash
SOCK_SYMLINK=~/.ssh/ssh_auth_sock
[ -r $SSH_AUTH_SOCK ] && ln -sf $SSH_AUTH_SOCK $SOCK_SYMLINK
env SSH_AUTH_SOCK=$SOCK_SYMLINK tmux $@ attach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment