From 2259e81bb0e02e2c56dfb800e4da7b2c019ad0a0 Mon Sep 17 00:00:00 2001 From: Stef Date: Sun, 19 Oct 2025 14:09:40 +0200 Subject: [PATCH] feat(step): Add atuin step (#1367) --- src/step.rs | 7 +++++++ src/steps/os/unix.rs | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/src/step.rs b/src/step.rs index a209b0e5..ecf6bba4 100644 --- a/src/step.rs +++ b/src/step.rs @@ -25,6 +25,7 @@ pub enum Step { Aqua, Asdf, Atom, + Atuin, Audit, AutoCpufreq, Bin, @@ -202,6 +203,11 @@ impl Step { )))] runner.execute(*self, "apm", || generic::run_apm(ctx))? } + Atuin => + { + #[cfg(unix)] + runner.execute(*self, "atuin", || unix::run_atuin(ctx))? + } Audit => { #[cfg(target_os = "dragonfly")] runner.execute(*self, "DragonFly Audit", || dragonfly::audit_packages(ctx))?; @@ -764,6 +770,7 @@ pub(crate) fn default_steps() -> Vec { Sdkman, Rcm, Maza, + Atuin, ]); #[cfg(not(any( diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index 9dfae660..33ea4161 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -934,6 +934,14 @@ pub fn run_maza(ctx: &ExecutionContext) -> Result<()> { ctx.execute(maza).arg("update").status_checked() } +pub fn run_atuin(ctx: &ExecutionContext) -> Result<()> { + let atuin = require("atuin-update")?; + + print_separator("atuin"); + + ctx.execute(atuin).status_checked() +} + pub fn reboot(ctx: &ExecutionContext) -> Result<()> { match ctx.sudo() { Some(sudo) => sudo.execute(ctx, "reboot")?.status_checked(),