| Crates.io | termstat |
| lib.rs | termstat |
| version | 0.1.1 |
| created_at | 2025-11-26 15:30:55.246917+00 |
| updated_at | 2025-11-26 17:24:56.337441+00 |
| description | A CLI tool to get information about your terminal command usage history |
| homepage | |
| repository | https://github.com/marc55s/termstat |
| max_upload_size | |
| id | 1951556 |
| size | 176,877 |
A complete local command tracker, no Cloud involved. Feel free to try it, but keep in mind, that some things may break in following updates.
Add the following to your .zshrc
eval "$(termstat init --shell-type zsh)"
Install nix and configure terstat via Homemanager
# flake.nix
# add input
inputs = {
termstat = {
url = "github:marc55s/termstat";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
}
# add overlay to your outputs
outputs = inputs@{self, nixpkgs, termstat ... }:
pkgs = import nixpkgs {
inherit system;
overlays = [ inputs.termstat.overlays.default];
}
# home.nix
{termstat, ...}:
{
programs.termstat = {
enable = true;
enableZshIntegration = true;
systemd = {
enable = true;
onCalendar = "DayOfWeek Year-Month-Day Hour:Minute:Second"; # defaults to daily
}
# Not supported yet
# enableBashIntegration = true;
# enableFishIntegration = true;
# enableIonIntegration = true;
# enableNushellIntegration = true;
};
# add the modules to your imports
imports = [termstat.homeManagerModules.default];
}
After the initalization the following commands are available:



For the statistics these other commandflags are available:
termstat stats # default to termstat stats --daily/-d
termstat stats --weekly/-w
termstat stats --monthly/-m