From ab718387c26a1154d2d0f11985f7f96878f788c9 Mon Sep 17 00:00:00 2001 From: me Date: Mon, 4 Dec 2023 12:50:36 +0300 Subject: [PATCH] Set PWD environment variable This is to make spawned shells and processes to see "logical" path. --- src/nnn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nnn.c b/src/nnn.c index dbc64197..735db388 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6835,6 +6835,8 @@ begin: setdirwatch(); } + setenv("PWD", path, TRUE); + #ifndef NOX11 xterm_cfg(path); #endif