mirror of
https://github.com/atuinsh/atuin.git
synced 2025-01-14 02:08:19 +01:00
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:
parent
cc964861c4
commit
94c85c3189
@ -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",
|
||||
# ]
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user