From f4294b83fb11cba28a040f157cee89bff229bd68 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 May 2019 12:59:01 +0530 Subject: [PATCH] Add a rationale for PWD --- kitty/child.py | 3 +++ 1 file changed, 3 insertions(+) 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