diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/atuin/src/command/client/wrapped.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/atuin/src/command/client/wrapped.rs b/crates/atuin/src/command/client/wrapped.rs index 7c5ca058..4dbc1cf0 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"); |
