diff options
author | Aram Drevekenin <aram@poor.dev> | 2024-04-12 16:15:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 16:15:11 +0200 |
commit | 89ce355c0446bc340f64f1b9f45fd0c4dc74eea7 (patch) | |
tree | d1bc0232827e80aeb0f44388cd6c311bdbc52cb7 /zellij-server/src/lib.rs | |
parent | 1c883c2a837aef3ea4cd7a051b286062913758e6 (diff) |
feat(config): allow disabling writing session metadata to disk (#3258)
* feat(config): allow disabling writing session metadata to disk
* style(fmt): rustfmt
Diffstat (limited to 'zellij-server/src/lib.rs')
-rw-r--r-- | zellij-server/src/lib.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/zellij-server/src/lib.rs b/zellij-server/src/lib.rs index acab5c27a..e1244ec4a 100644 --- a/zellij-server/src/lib.rs +++ b/zellij-server/src/lib.rs @@ -881,6 +881,7 @@ fn init_session( }; let serialization_interval = config_options.serialization_interval; + let disable_session_metadata = config_options.disable_session_metadata.unwrap_or(false); let default_shell = config_options.default_shell.clone().map(|command| { TerminalAction::RunCommand(RunCommand { @@ -1017,7 +1018,14 @@ fn init_session( None, Some(os_input.clone()), ); - move || background_jobs_main(background_jobs_bus, serialization_interval).fatal() + move || { + background_jobs_main( + background_jobs_bus, + serialization_interval, + disable_session_metadata, + ) + .fatal() + } }) .unwrap(); |