From 9e044750ce8c12c8572f99f5ffd1e1d294a31ee3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 Jul 2018 10:14:17 +0530 Subject: [PATCH] When running kittens use the cwd of the child process as the kittens' cwd --- kitty/boss.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/boss.py b/kitty/boss.py index 43d9895f7..7118c9127 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -610,7 +610,9 @@ class Boss: 'OVERLAID_WINDOW_LINES': str(w.screen.lines), 'OVERLAID_WINDOW_COLS': str(w.screen.columns), }, - overlay_for=w.id)) + cwd=w.cwd_of_child, + overlay_for=w.id + )) overlay_window.action_on_close = partial(self.on_kitten_finish, w.id, end_kitten) return overlay_window