Use same working directory rules for jobs as new windows rather than

always starting in home, GitHub issue 1488.
This commit is contained in:
nicm
2018-09-27 07:43:18 +00:00
parent 7d59f82cf9
commit 228e1a3951
2 changed files with 3 additions and 1 deletions

1
job.c
View File

@ -80,6 +80,7 @@ job_run(const char *cmd, struct session *s, const char *cwd,
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, out) != 0)
return (NULL);
log_debug("%s: cmd=%s, cwd=%s", __func__, cmd, cwd);
/*
* Do not set TERM during .tmux.conf, it is nice to be able to use