From 016bde1bd4135a4a7d48e1c864a223cc6cedaf0e Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 21 Dec 2019 15:35:54 +0100 Subject: term: wip: track current working directory This sets the initial current working directory, as it is when the terminal is instantiated. We chdir() to it just before spawning a new terminal. --- terminal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index b7a92be4..0fe4c4dc 100644 --- a/terminal.h +++ b/terminal.h @@ -316,6 +316,7 @@ struct terminal { void *shutdown_data; char *foot_exe; + char *cwd; }; struct config; -- cgit v1.3