diff options
author | Helmut K. C. Tessarek <tessarek@evermeet.cx> | 2024-02-27 08:27:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 13:27:39 +0000 |
commit | 94c85c31891c154d984f41a82401e0a7f782722e (patch) | |
tree | 67c65b82f8d15b115810cd9b4855f80662d0691e | |
parent | cc964861c4a06580edcc2b0b812fdbe02e685a29 (diff) |
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'
-rw-r--r-- | atuin-client/config.toml | 13 | ||||
-rw-r--r-- | atuin-client/src/settings.rs | 20 |
2 files changed, 31 insertions, 2 deletions
diff --git a/atuin-client/config.toml b/atuin-client/config.toml index 13934d46..307a645a 100644 --- a/atuin-client/config.toml +++ b/atuin-client/config.toml @@ -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", # ] diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index b7dc7f1c..9f2afd04 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -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) |