mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Do not update TERM into config file parsing has finished.
This commit is contained in:
7
job.c
7
job.c
@ -55,7 +55,12 @@ job_run(const char *cmd, struct session *s, const char *cwd,
|
||||
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, out) != 0)
|
||||
return (NULL);
|
||||
|
||||
env = environ_for_session(s);
|
||||
/*
|
||||
* Do not set TERM during .tmux.conf, it is nice to be able to use
|
||||
* if-shell to decide on default-terminal based on outside TERM.
|
||||
*/
|
||||
env = environ_for_session(s, !cfg_finished);
|
||||
|
||||
switch (pid = fork()) {
|
||||
case -1:
|
||||
environ_free(env);
|
||||
|
Reference in New Issue
Block a user