aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crates/atuin-client/config.toml2
-rw-r--r--crates/atuin/src/command/client/search/interactive.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/atuin-client/config.toml b/crates/atuin-client/config.toml
index 476a95db..c40461ab 100644
--- a/crates/atuin-client/config.toml
+++ b/crates/atuin-client/config.toml
@@ -158,7 +158,7 @@
# This applies for new installs. Old installs will keep the old behaviour unless configured otherwise.
enter_accept = true
-## Defaults to false. If enabled, when triggered after && or ||, Atuin will complete commands to chain rather than replace the current line.
+## Defaults to false. If enabled, when triggered after &&, || or |, Atuin will complete commands to chain rather than replace the current line.
# command_chaining = false
## Defaults to "emacs". This specifies the keymap on the startup of `atuin
diff --git a/crates/atuin/src/command/client/search/interactive.rs b/crates/atuin/src/command/client/search/interactive.rs
index 2f577292..f2471879 100644
--- a/crates/atuin/src/command/client/search/interactive.rs
+++ b/crates/atuin/src/command/client/search/interactive.rs
@@ -1121,7 +1121,7 @@ pub async fn history(
// Check if this is a command chaining scenario
let is_command_chaining = if settings.command_chaining {
let trimmed = original_query.trim_end();
- trimmed.ends_with("&&") || trimmed.ends_with("||")
+ trimmed.ends_with("&&") || trimmed.ends_with('|')
} else {
false
};