mirror of
https://github.com/atuinsh/atuin.git
synced 2025-06-25 20:32:01 +02: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]
|
[stats]
|
||||||
## Set commands where we should consider the subcommand for statistics. Eg, kubectl get vs just kubectl
|
## Set commands where we should consider the subcommand for statistics. Eg, kubectl get vs just kubectl
|
||||||
# common_subcommands = [
|
# common_subcommands = [
|
||||||
|
# "apt",
|
||||||
# "cargo",
|
# "cargo",
|
||||||
|
# "composer",
|
||||||
|
# "dnf",
|
||||||
|
# "docker",
|
||||||
# "git",
|
# "git",
|
||||||
# "go",
|
# "go",
|
||||||
|
# "ip",
|
||||||
# "kubectl",
|
# "kubectl",
|
||||||
# "npm",
|
|
||||||
# "nix",
|
# "nix",
|
||||||
|
# "nmcli",
|
||||||
|
# "npm",
|
||||||
|
# "pecl",
|
||||||
# "pnpm",
|
# "pnpm",
|
||||||
|
# "podman",
|
||||||
|
# "port",
|
||||||
|
# "systemctl",
|
||||||
|
# "tmux",
|
||||||
# "yarn",
|
# "yarn",
|
||||||
# ]
|
# ]
|
||||||
|
|
||||||
|
@ -281,7 +281,25 @@ impl Stats {
|
|||||||
|
|
||||||
fn common_subcommands_default() -> Vec<String> {
|
fn common_subcommands_default() -> Vec<String> {
|
||||||
vec![
|
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()
|
.into_iter()
|
||||||
.map(String::from)
|
.map(String::from)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user