diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-03-05 14:50:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-05 14:50:42 +0000 |
| commit | 14be7e048eea118f93a624c754d5d1ab05b1831b (patch) | |
| tree | 8703740d802098f4911326a114763a2faefe9168 /atuin-client/src | |
| parent | fix(nix): set meta.mainProgram in the package (#1823) (diff) | |
| download | atuin-14be7e048eea118f93a624c754d5d1ab05b1831b.zip | |
feat(dotfiles): add enable setting to dotfiles, disable by default (#1829)
Diffstat (limited to 'atuin-client/src')
| -rw-r--r-- | atuin-client/src/settings.rs | 5 | ||||
| -rw-r--r-- | atuin-client/src/settings/dotfiles.rs | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index 3b34381c..487e61b7 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -33,6 +33,8 @@ pub const LATEST_VERSION_FILENAME: &str = "latest_version"; pub const HOST_ID_FILENAME: &str = "host_id"; static EXAMPLE_CONFIG: &str = include_str!("../config.toml"); +mod dotfiles; + #[derive(Clone, Debug, Deserialize, Copy, ValueEnum, PartialEq)] pub enum SearchMode { #[serde(rename = "prefix")] @@ -393,6 +395,9 @@ pub struct Settings { #[serde(default)] pub keys: Keys, + #[serde(default)] + pub dotfiles: dotfiles::Settings, + // This is automatically loaded when settings is created. Do not set in // config! Keep secrets and settings apart. #[serde(skip)] diff --git a/atuin-client/src/settings/dotfiles.rs b/atuin-client/src/settings/dotfiles.rs new file mode 100644 index 00000000..dd852781 --- /dev/null +++ b/atuin-client/src/settings/dotfiles.rs @@ -0,0 +1,6 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Serialize, Deserialize, Clone, Default)] +pub struct Settings { + pub enabled: bool, +} |
