mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
When launching child process set the PWD environment variable
This allows shells to display the symlink path to a directory instead of the resolved path, when the specified directory is a symlink. Fixes #1595
This commit is contained in:
@@ -168,6 +168,8 @@ class Child:
|
||||
env.update(self.env)
|
||||
env['TERM'] = self.opts.term
|
||||
env['COLORTERM'] = 'truecolor'
|
||||
if self.cwd:
|
||||
env['PWD'] = self.cwd
|
||||
if os.path.isdir(terminfo_dir):
|
||||
env['TERMINFO'] = terminfo_dir
|
||||
env = tuple('{}={}'.format(k, v) for k, v in env.items())
|
||||
|
||||
Reference in New Issue
Block a user