diff options
Diffstat (limited to 'atuin-client/src/settings.rs')
| -rw-r--r-- | atuin-client/src/settings.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index 7e251550..0798a890 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -173,6 +173,11 @@ impl Default for Stats { } } +#[derive(Clone, Debug, Deserialize, Default)] +pub struct Sync { + pub records: bool, +} + #[derive(Clone, Debug, Deserialize)] pub struct Settings { pub dialect: Dialect, @@ -217,6 +222,9 @@ pub struct Settings { #[serde(default)] pub stats: Stats, + #[serde(default)] + pub sync: Sync, + // This is automatically loaded when settings is created. Do not set in // config! Keep secrets and settings apart. #[serde(skip)] @@ -427,6 +435,7 @@ impl Settings { // muscle memory. // New users will get the new default, that is more similar to what they are used to. .set_default("enter_accept", false)? + .set_default("sync.records", false)? .add_source( Environment::with_prefix("atuin") .prefix_separator("_") |
