Back to TIL
shell

Configuring Atuin for Python

I just installed Atuin on my machine, and while working through it’s config (~/.config/atuin/config.toml), I discovered this setting:

[stats]
common_subcommands = [
    "apt",
    "cargo",
    "composer",
    "dnf",
    "docker",
    "git",
    "go",
    "ip",
    "kubectl",
    "nix",
    "nmcli",
    "npm",
    "pecl",
    "pnpm",
    "podman",
    "port",
    "systemctl",
    "tmux",
    "yarn",
]

To cite their docs:

Configures commands where we should consider the subcommand as part of the statistics. For example, consider kubectl get rather than just kubectl.

I spend a lot of time coding in Python and Rust, so I simply had to extend it with just a handful of relevant commands from these ecosystems:

[stats]
common_subcommands = [
    # ...
    # Python:
    "pip",
    "uv",
    "poetry",
    # Rust:
    "cargo"
]