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
Make tmux plugin refresh tmux global environments automatically. #5282
base: master
Are you sure you want to change the base?
Conversation
Hi, @robbyrussell are you looking for someone to do the testing, or would like some instructions? To test:
ssh -A to the system, then run 'tmux'. env | grep SSH_AUTH_SOCK Detach the session (Ctrl+B, D), logout, then repeat ssh -A, tmux Hit enter (which makes sure that zsh have a new prompt) env | grep SSH_AUTH_SOCK The result should be different. ssh'ing to other hosts would be relayed to user's workstation for SSH agent authentication. |
Hello @delphij, |
c946c67
to
748d149
Compare
Good point! I have updated my tree and it worked. |
I have tested this feature, truly helped me while I am connected through ps. second
Thank you very much. |
Personally, I think this PR should be merged, the functionality is super helpful and can be easily toggled on/off by the user. @xals I think you were asking about how changing variables that are also set in the @delphij I would suggest also adding [[ -n "$TMUX" && "$ZSH_TMUX_AUTOREFRESH" == "true" ]] && tmux ls >/dev/null 2>/dev/null |
748d149
to
fdf55dd
Compare
I've rebased my changes over the latest version of the plugin. |
This is handy for tmux users who work in interactive mode. By default, tmux would pass through e.g. X11, SSH agent, etc. via global environment.