aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-dotfiles/src/store.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-04-25 07:52:23 +0100
committerGitHub <noreply@github.com>2024-04-25 07:52:23 +0100
commitd020c815c121f7f28cfcf1419f94109851fdc422 (patch)
tree8b9476849f35b9614352132c9cc0835662f3d90f /crates/atuin-dotfiles/src/store.rs
parentfix(ci): release workflow (#1978) (diff)
downloadatuin-d020c815c121f7f28cfcf1419f94109851fdc422.zip
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.
Diffstat (limited to 'crates/atuin-dotfiles/src/store.rs')
-rw-r--r--crates/atuin-dotfiles/src/store.rs3
1 files changed, 3 insertions, 0 deletions
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