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.
This commit is contained in:
Daniel Eklöf 2019-12-21 15:35:54 +01:00
parent a484a65fef
commit 016bde1bd4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 14 additions and 0 deletions

View file

@ -316,6 +316,7 @@ struct terminal {
void *shutdown_data;
char *foot_exe;
char *cwd;
};
struct config;