OK yes, my fault, I added MSYSTEM in alphabetical order and that changed
the order.
You could do this which would not depend on the positions:
set -gF update-environment "#{s| SSH_AUTH_SOCK||:update-environment}"
On Tue, 3 Feb 2026 at 12:14, 'Tobias Damisch' via tmux-users <
[email protected]> wrote:
> Ah, thanks for "tmux show -g update-environment", I solved it!
> using:
> set-option -g -u update-environment[4]
> instead of:
> set-option -g -u update-environment[3]
> in .tmux.conf did the trick!
>
>
> Am 03.02.26 um 12:42 schrieb Nicholas Marriott:
> > What about "tmux show -g update-environment" and "tmux show update-
> > environment"? Is SSH_AUTH_SOCK correctly removed?
> >
> > If you do something like this:
> >
> > tmux set remain-on-exit on
> > tmux splitw -- env --
> >
> > What do you see in SSH_AUTH_SOCK? This will show whether tmux is setting
> > it incorrectly or the shell is changing it.
> >
> >
> >
> >
> > On Tue, 3 Feb 2026 at 11:24, 'Tobias Damisch' via tmux-users <tmux-
> > [email protected] <mailto:[email protected]>> wrote:
> >
> > Inside tmux:
> >
> > > tmux showenv -g SSH_AUTH_SOCK
> > SSH_AUTH_SOCK=/home/user/.ssh/ssh_auth_sock
> > > echo $SSH_AUTH_SOCK
> > /tmp/ssh-E0rzE8HFKj/agent.4108400
> > > tmux showenv SSH_AUTH_SOCK
> > SSH_AUTH_SOCK=/tmp/ssh-E0rzE8HFKj/agent.4108400
> >
> > So, it seems the global environment is somehow overwritten.
> > No time for tmux logs now, will check later if necessary.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "tmux-users" group.
> > To unsubscribe from this group and stop receiving emails from it,
> > send an email to [email protected]
> > <mailto:tmux-users%[email protected]>.
> > To view this discussion, visit https://groups.google.com/d/msgid/
> > tmux-users/9d3902e1-855b-431c-b13a-7c5fb4fad99b%40gmx.at <https://
> > groups.google.com/d/msgid/tmux-users/9d3902e1-855b-431c-
> > b13a-7c5fb4fad99b%40gmx.at>.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion, visit
> https://groups.google.com/d/msgid/tmux-users/7a6a706a-871d-4184-a75f-aef686214553%40gmx.at
> .
>
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion, visit
https://groups.google.com/d/msgid/tmux-users/CAEdLfcGD%3DX4-Wy4Et7iFYj22p2T4-SMy%3Doga9sz2UJ3cud37LA%40mail.gmail.com.