diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-03-04 15:49:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 15:49:28 +0000 |
| commit | a5e1d252877af0d7c453a209156205ce6ce9739d (patch) | |
| tree | d729800cbb9acce75b77b11570dae1e4f6ae761a /atuin-dotfiles/src/shell/zsh.rs | |
| parent | fix(tz): attempt to fix timezone reading (#1810) (diff) | |
| download | atuin-a5e1d252877af0d7c453a209156205ce6ce9739d.zip | |
refactor: rename atuin-config to atuin-dotfiles (#1817)
Diffstat (limited to 'atuin-dotfiles/src/shell/zsh.rs')
| -rw-r--r-- | atuin-dotfiles/src/shell/zsh.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/atuin-dotfiles/src/shell/zsh.rs b/atuin-dotfiles/src/shell/zsh.rs new file mode 100644 index 00000000..6f81ed55 --- /dev/null +++ b/atuin-dotfiles/src/shell/zsh.rs @@ -0,0 +1,12 @@ +use super::Alias; + +// Configuration for zsh +pub fn build(aliases: &[Alias]) -> String { + let mut config = String::new(); + + for alias in aliases { + config.push_str(&format!("alias {}='{}'\n", alias.name, alias.value)); + } + + config +} |
