diff --git a/crates/atuin/src/command/client/wrapped.rs b/crates/atuin/src/command/client/wrapped.rs index 7c5ca0585e8..4dbc1cf025f 100644 --- a/crates/atuin/src/command/client/wrapped.rs +++ b/crates/atuin/src/command/client/wrapped.rs @@ -280,6 +280,10 @@ pub async fn run( ); let history = db.range(start, end).await?; + if history.is_empty() { + println!("Your history for {year} is empty!\nMaybe 'atuin import' could help you import your previous history 🪄"); + return Ok(()); + } // Compute overall stats using existing functionality let stats = compute(settings, &history, 10, 1).expect("Failed to compute stats");