diff --git a/kitty/child.py b/kitty/child.py index 50a4ac460..d6c92a9c6 100644 --- a/kitty/child.py +++ b/kitty/child.py @@ -169,6 +169,9 @@ class Child: 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