feat(stats): add linux sysadmin commands to common_subcommands (#1784)

* feat(stats): add linux sysadmin commands to common_subcommands

I've been using atuin on my Linux box for some time now and I have
noticed that a few commands that are used rather often are not in the
list of common_subcommands.
This change adds these commands to the list.

* feat(stats): I forgot 'apt'
This commit is contained in:
Helmut K. C. Tessarek 2024-02-27 08:27:39 -05:00 committed by GitHub
parent cc964861c4
commit 94c85c3189
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 2 deletions

View File

@ -160,13 +160,24 @@ enter_accept = true
[stats]
## Set commands where we should consider the subcommand for statistics. Eg, kubectl get vs just kubectl
# common_subcommands = [
# "apt",
# "cargo",
# "composer",
# "dnf",
# "docker",
# "git",
# "go",
# "ip",
# "kubectl",
# "npm",
# "nix",
# "nmcli",
# "npm",
# "pecl",
# "pnpm",
# "podman",
# "port",
# "systemctl",
# "tmux",
# "yarn",
# ]

View File

@ -281,7 +281,25 @@ impl Stats {
fn common_subcommands_default() -> Vec<String> {
vec![
"cargo", "composer", "go", "git", "kubectl", "nix", "npm", "pnpm", "yarn",
"apt",
"cargo",
"composer",
"dnf",
"docker",
"git",
"go",
"ip",
"kubectl",
"nix",
"nmcli",
"npm",
"pecl",
"pnpm",
"podman",
"port",
"systemctl",
"tmux",
"yarn",
]
.into_iter()
.map(String::from)