From 2ca7dd57b12861e8c9bbc9238cda612e0ff22ff3 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 12 Jun 2026 17:16:19 +0200 Subject: chore(treewide): Cleanup themes --- crates/turtle/src/command/client/wrapped.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crates/turtle/src/command/client/wrapped.rs') diff --git a/crates/turtle/src/command/client/wrapped.rs b/crates/turtle/src/command/client/wrapped.rs index d502d3ec..2ce19bf7 100644 --- a/crates/turtle/src/command/client/wrapped.rs +++ b/crates/turtle/src/command/client/wrapped.rs @@ -4,7 +4,7 @@ use std::collections::{HashMap, HashSet}; use time::{Date, Duration, Month, OffsetDateTime, Time}; use crate::atuin_client::database::ClientSqlite; -use crate::atuin_client::{settings::Settings, theme::Theme}; +use crate::atuin_client::settings::Settings; use crate::atuin_history::stats::{Stats, compute}; @@ -31,7 +31,12 @@ impl WrappedStats { .iter() .filter(|(cmd, _)| { let cmd = &cmd[0]; - cmd == "cd" || cmd == "ls" || cmd == "pwd" || cmd == "pushd" || cmd == "popd" + cmd == "cd" + || cmd == "ls" + || cmd == "ll" + || cmd == "pwd" + || cmd == "pushd" + || cmd == "popd" }) .map(|(_, count)| count) .sum(); @@ -267,12 +272,7 @@ fn print_fun_facts(wrapped_stats: &WrappedStats, stats: &Stats, year: i32) { println!(); } -pub(crate) async fn run( - year: Option, - db: &ClientSqlite, - settings: &Settings, - theme: &Theme, -) -> Result<()> { +pub(crate) async fn run(year: Option, db: &ClientSqlite, settings: &Settings) -> Result<()> { let now = OffsetDateTime::now_utc().to_offset(settings.timezone.0); let month = now.month(); @@ -318,7 +318,7 @@ pub(crate) async fn run( ); println!("Your Top Commands:"); - crate::atuin_history::stats::pretty_print(stats.clone(), 1, theme); + crate::atuin_history::stats::pretty_print(stats.clone(), 1); println!(); print_fun_facts(&wrapped_stats, &stats, year); -- cgit v1.3.1