aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohannes Baiter <johannes.baiter@gmail.com>2023-02-14 08:14:05 +0100
committerGitHub <noreply@github.com>2023-02-14 07:14:05 +0000
commit5cb43772dc26cceddc3496ce99ba3b944f49a8e2 (patch)
treefa60725bde969c44cd776ce80c7e3e7c6a9b338a /src
parentMake the install script more robust (#692) (diff)
downloadatuin-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 '')
-rw-r--r--src/command/client/history.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/client/history.rs b/src/command/client/history.rs
index 34b851d9..7382eba6 100644
--- a/src/command/client/history.rs
+++ b/src/command/client/history.rs
@@ -175,7 +175,7 @@ impl Cmd {
Self::Start { command: words } => {
let command = words.join(" ");
- if command.starts_with(' ') {
+ if command.starts_with(' ') || settings.history_filter.is_match(&command) {
return Ok(());
}