Add a rationale for PWD

This commit is contained in:
Kovid Goyal 2019-05-11 12:59:01 +05:30
parent 4fa4a20b22
commit f4294b83fb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -169,6 +169,9 @@ def fork(self):
env['TERM'] = self.opts.term
env['COLORTERM'] = 'truecolor'
if self.cwd:
# needed incase cwd is a symlink, in which case shells
# can use it to display the current directory name rather
# than the resolved path
env['PWD'] = self.cwd
if os.path.isdir(terminfo_dir):
env['TERMINFO'] = terminfo_dir