diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-09-26 17:00:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-10-02 18:11:07 +0000 |
| commit | 9e5866109374a3181da06ad411b15bab4a728d8e (patch) | |
| tree | 6767e91520b1586c36a8bc9134ddf5e1b01a04e8 /slave.c | |
| parent | scripts: generate-builtin-terminfo: add synthetic ‘name’ capability (diff) | |
slave: spawn: set PWD environment variable
This improves handling of symlinks (in CWD) when launching a new
terminal instance, either through ctrl+shift+n, or using the
--working-directory command line option.
Closes #1179
Diffstat (limited to 'slave.c')
| -rw-r--r-- | slave.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -352,6 +352,7 @@ slave_spawn(int ptmx, int argc, const char *cwd, char *const *argv, setenv("TERM", term_env, 1); setenv("COLORTERM", "truecolor", 1); + setenv("PWD", cwd, 1); #if defined(FOOT_TERMINFO_PATH) setenv("TERMINFO", FOOT_TERMINFO_PATH, 1); |
