From d020c815c121f7f28cfcf1419f94109851fdc422 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Thu, 25 Apr 2024 07:52:23 +0100 Subject: feat(dotfiles): support syncing shell/env vars (#1977) There's a bunch of duplication here! I'd also like to support syncing shell "snippets", aka just bits of shell config that don't fit into the structure here. Potentially special handling for PATH too. Rather than come up with some abstraction in the beginning, which inevitably will not fit future uses, I'm duplicating code _for now_. Once all the functionality is there, I can tidy things up and sort a proper abstraction out. Something in atuin-client for map/list style synced structures would probably work best. --- crates/atuin-dotfiles/src/store.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/atuin-dotfiles/src/store.rs') diff --git a/crates/atuin-dotfiles/src/store.rs b/crates/atuin-dotfiles/src/store.rs index b7984c1c..f1789e2b 100644 --- a/crates/atuin-dotfiles/src/store.rs +++ b/crates/atuin-dotfiles/src/store.rs @@ -18,6 +18,9 @@ const CONFIG_SHELL_ALIAS_VERSION: &str = "v0"; const CONFIG_SHELL_ALIAS_TAG: &str = "config-shell-alias"; const CONFIG_SHELL_ALIAS_FIELD_MAX_LEN: usize = 20000; // 20kb max total len, way more than should be needed. +mod alias; +pub mod var; + #[derive(Debug, Clone, PartialEq, Eq)] pub enum AliasRecord { Create(Alias), // create a full record -- cgit v1.3.1