diff options
| author | Johannes Baiter <johannes.baiter@gmail.com> | 2023-02-14 08:14:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-14 07:14:05 +0000 |
| commit | 5cb43772dc26cceddc3496ce99ba3b944f49a8e2 (patch) | |
| tree | fa60725bde969c44cd776ce80c7e3e7c6a9b338a /atuin-client/config.toml | |
| parent | Make the install script more robust (#692) (diff) | |
| download | atuin-5cb43772dc26cceddc3496ce99ba3b944f49a8e2.zip | |
Add `history_filter` cfg to exclude commands from history (#515) (#716)
Adds a new `history_filter` setting through which users can specify a
list of regular expressions that match commands that should not be
recorded in the history.
Diffstat (limited to 'atuin-client/config.toml')
| -rw-r--r-- | atuin-client/config.toml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/atuin-client/config.toml b/atuin-client/config.toml index bcaa039f..0c9b4ede 100644 --- a/atuin-client/config.toml +++ b/atuin-client/config.toml @@ -37,3 +37,13 @@ ## what to do when the escape key is pressed when searching ## possible values: return-original, return-query # exit_mode = "return-original" + +## prevent commands matching any of these regexes from being written to history. +## Note that these regular expressions are unanchored, i.e. if they don't start +## with ^ or end with $, they'll match anywhere in the command. +## For details on the supported regular expression syntax, see +## https://docs.rs/regex/latest/regex/#syntax +# history_filter = [ +# "^secret-cmd", +# "^innocuous-cmd .*--secret=.+" +# ]
\ No newline at end of file |
