From 20f329646894e11e47e7e516b076fa23976c0d5a Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Thu, 15 Feb 2024 19:07:08 +0000 Subject: feat: support syncing aliases (#1721) * feat: support syncing aliases This is definitely not yet finished, but works for zsh right now. TODO: 1. Support other shells 2. Cache the alias generation, so we don't have to do a bunch of work at shell init time * correct imports * fix clippy errors * fix tests * add the other shells * support xonsh * add delete * update rust, then make clippy happy once more * omfg fmt too --- atuin-config/src/shell.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 atuin-config/src/shell.rs (limited to 'atuin-config/src/shell.rs') diff --git a/atuin-config/src/shell.rs b/atuin-config/src/shell.rs new file mode 100644 index 00000000..a69a2d6b --- /dev/null +++ b/atuin-config/src/shell.rs @@ -0,0 +1,10 @@ +pub mod bash; +pub mod fish; +pub mod xonsh; +pub mod zsh; + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Alias { + pub name: String, + pub value: String, +} -- cgit v1.3.1