zsh-users
 help / color / mirror / code / Atom feed
* callback?
@ 2020-11-02  2:39 Matt Zagrabelny
  2020-11-02  8:52 ` callback? Oliver Kiddle
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Zagrabelny @ 2020-11-02  2:39 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 575 bytes --]

Greetings!

I am using tmux with zsh.

I use ssh agent forwarding and I ssh to a remote system that is running
tmux. I then detach from that terminal and my SSH_AUTH_SOCK environment
variable becomes "stale".

I would like to have zsh execute something to refresh the SSH_AUTH_SOCK
environment variable when I "tmux attach" to the aforementioned detached
tmux session.

Does anyone know of a way to register a callback or something for zsh so
when a particular command gets run (in my case, tmux attach) my zsh
environment variable can get updated?

Thanks for the help!

-m

[-- Attachment #2: Type: text/html, Size: 776 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-02  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02  2:39 callback? Matt Zagrabelny
2020-11-02  8:52 ` callback? Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).