aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-21 14:35:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-21 14:35:54 +0000
commit016bde1bd4135a4a7d48e1c864a223cc6cedaf0e (patch)
tree34ff04cd17c28d9dd406a8304cf1199e08ad1c98 /terminal.h
parentterm: term_spawn_new: always spawn foot/footclient from PATH (diff)
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.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h1
1 files changed, 1 insertions, 0 deletions
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;