I mainly work on a mac and ssh/tmux attach to a Linux machine to do my work. I have ssh-agent running on the Linux machine. I have set -g update-environment "SSH_AUTH_SOCK SSH_ASKPASS WINDOWID SSH_CONNECTION XAUTHORITY" in my .tmux.conf. Yet, whenever I re-attach to this session, I have to run tmux setenv SSH_AUTH_SOCK $SSH_AUTH_SOCK in order for new tmux windows to have $SSH_AUTH_SOCK set correct
![Why do I have to re-set env vars in tmux when I re-attach?](https://cdn-ak-scissors.b.st-hatena.com/image/square/b464c2cda694ab68f456c208dff3f30700a47c13/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Funix%2FImg%2Fapple-touch-icon%402.png%3Fv%3D32fb07f7ce26)