Skip to content

Commit

Permalink
Merge pull request jarun#1778 from 7ocb/set-PWD-to-current-path
Browse files Browse the repository at this point in the history
Set PWD environment variable
  • Loading branch information
jarun authored Dec 8, 2023
2 parents bb650eb + ab71838 commit 5595d93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -6835,6 +6835,8 @@ static bool browse(char *ipath, const char *session, int pkey)
setdirwatch();
}

setenv("PWD", path, TRUE);

#ifndef NOX11
xterm_cfg(path);
#endif
Expand Down

0 comments on commit 5595d93

Please sign in to comment.