Skip to content

Commit 41435ba

Browse files
committed
feat: add shell pipelines to command chaining
1 parent 2fc262d commit 41435ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/atuin-client/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
# This applies for new installs. Old installs will keep the old behaviour unless configured otherwise.
159159
enter_accept = true
160160

161-
## Defaults to false. If enabled, when triggered after && or ||, Atuin will complete commands to chain rather than replace the current line.
161+
## Defaults to false. If enabled, when triggered after &&, || or |, Atuin will complete commands to chain rather than replace the current line.
162162
# command_chaining = false
163163

164164
## Defaults to "emacs". This specifies the keymap on the startup of `atuin

crates/atuin/src/command/client/search/interactive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ pub async fn history(
11211121
// Check if this is a command chaining scenario
11221122
let is_command_chaining = if settings.command_chaining {
11231123
let trimmed = original_query.trim_end();
1124-
trimmed.ends_with("&&") || trimmed.ends_with("||")
1124+
trimmed.ends_with("&&") || trimmed.ends_with('|')
11251125
} else {
11261126
false
11271127
};

0 commit comments

Comments
 (0)