aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/config.toml
diff options
context:
space:
mode:
authorKjetil Jørgensen <kjetijor+github@gmail.com>2023-05-01 19:55:54 -0700
committerGitHub <noreply@github.com>2023-05-02 02:55:54 +0000
commit244a501cbbdc66a5c5fa3de220ca9257198fc4aa (patch)
tree6692b2a84699b797b1ef26be136881e0a6fbea43 /atuin-client/config.toml
parentadd nu section to keybind docs (#881) (diff)
downloadatuin-244a501cbbdc66a5c5fa3de220ca9257198fc4aa.zip
cwd_filter: much like history_filter, only it applies to cwd (#904)
* cwd_filter: much like history_filter, only it applies to cwd * appease clippy
Diffstat (limited to 'atuin-client/config.toml')
-rw-r--r--atuin-client/config.toml9
1 files changed, 9 insertions, 0 deletions
diff --git a/atuin-client/config.toml b/atuin-client/config.toml
index 1208586e..d8d0ddb2 100644
--- a/atuin-client/config.toml
+++ b/atuin-client/config.toml
@@ -73,3 +73,12 @@
# "^secret-cmd",
# "^innocuous-cmd .*--secret=.+"
# ]
+
+## prevent commands run with cwd 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 anyware in CWD.
+## For details on the supported regular expression syntax, see
+## https://docs.rs/regex/latest/regex/#syntax
+# cwd_filter = [
+# "^/very/secret/area"
+# ]