mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-21 18:41:03 +02:00
Update environment with -E when attach-session used on an already
attached session or switch-client used on the current session. From Cam Hutchison.
This commit is contained in:
@@ -119,7 +119,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
|
||||
}
|
||||
}
|
||||
|
||||
if (c != NULL && s != c->session && !args_has(args, 'E')) {
|
||||
if (c != NULL && !args_has(args, 'E')) {
|
||||
update = options_get_string(&s->options, "update-environment");
|
||||
environ_update(update, &c->environ, &s->environ);
|
||||
}
|
||||
|
Reference in New Issue
Block a user