Add a rationale for PWD
This commit is contained in:
parent
4fa4a20b22
commit
f4294b83fb
@ -169,6 +169,9 @@ class Child:
|
|||||||
env['TERM'] = self.opts.term
|
env['TERM'] = self.opts.term
|
||||||
env['COLORTERM'] = 'truecolor'
|
env['COLORTERM'] = 'truecolor'
|
||||||
if self.cwd:
|
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
|
env['PWD'] = self.cwd
|
||||||
if os.path.isdir(terminfo_dir):
|
if os.path.isdir(terminfo_dir):
|
||||||
env['TERMINFO'] = terminfo_dir
|
env['TERMINFO'] = terminfo_dir
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user