From cc964861c4a06580edcc2b0b812fdbe02e685a29 Mon Sep 17 00:00:00 2001 From: Sandro Date: Mon, 26 Feb 2024 15:58:22 +0100 Subject: feat(stats): Normalize formatting of default config, suggest nix (#1764) * Normalize formatting This makes the commented bits unifed and makes lists multiline and always adds the trailing comma. * Add nix to default config Since we are big fans of it ;) --- atuin-client/config.toml | 31 ++++++++++++++++++------------- atuin-client/src/settings.rs | 2 +- 2 files changed, 19 insertions(+), 14 deletions(-) (limited to 'atuin-client') diff --git a/atuin-client/config.toml b/atuin-client/config.toml index 1475b359..13934d46 100644 --- a/atuin-client/config.toml +++ b/atuin-client/config.toml @@ -100,7 +100,7 @@ ## https://docs.rs/regex/latest/regex/#syntax # history_filter = [ # "^secret-cmd", -# "^innocuous-cmd .*--secret=.+" +# "^innocuous-cmd .*--secret=.+", # ] ## prevent commands run with cwd matching any of these regexes from being written @@ -109,7 +109,7 @@ ## For details on the supported regular expression syntax, see ## https://docs.rs/regex/latest/regex/#syntax # cwd_filter = [ -# "^/very/secret/area" +# "^/very/secret/area", # ] ## Configure the maximum height of the preview to show. @@ -159,21 +159,26 @@ enter_accept = true [stats] ## Set commands where we should consider the subcommand for statistics. Eg, kubectl get vs just kubectl -#common_subcommands = [ -# "cargo", -# "go", -# "git", -# "npm", -# "yarn", -# "pnpm", -# "kubectl", -#] +# common_subcommands = [ +# "cargo", +# "git", +# "go", +# "kubectl", +# "npm", +# "nix", +# "pnpm", +# "yarn", +# ] ## Set commands that should be totally stripped and ignored from stats -#common_prefix = ["sudo"] +# common_prefix = ["sudo"] ## Set commands that will be completely ignored from stats -#ignored_commands = ["cd", "ls", "vi"] +# ignored_commands = [ +# "cd", +# "ls", +# "vi" +# ] [keys] # Defaults to true. If disabled, using the up/down key won't exit the TUI when scrolled past the first/last entry. diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index 3b4a1ee1..b7dc7f1c 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -281,7 +281,7 @@ impl Stats { fn common_subcommands_default() -> Vec { vec![ - "cargo", "composer", "git", "go", "kubectl", "npm", "pnpm", "yarn", + "cargo", "composer", "go", "git", "kubectl", "nix", "npm", "pnpm", "yarn", ] .into_iter() .map(String::from) -- cgit v1.2.3