diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-02-26 15:58:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 14:58:22 +0000 |
commit | cc964861c4a06580edcc2b0b812fdbe02e685a29 (patch) | |
tree | b29d7ff51570ae615fc5e0565d004c0d1e6309ef | |
parent | d9ba2a0061e9fcc8146869fad8adede48400f419 (diff) |
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 ;)
-rw-r--r-- | atuin-client/config.toml | 31 | ||||
-rw-r--r-- | atuin-client/src/settings.rs | 2 |
2 files changed, 19 insertions, 14 deletions
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<String> { vec![ - "cargo", "composer", "git", "go", "kubectl", "npm", "pnpm", "yarn", + "cargo", "composer", "go", "git", "kubectl", "nix", "npm", "pnpm", "yarn", ] .into_iter() .map(String::from) |