diff options
| author | Koichi Murase <myoga.murase@gmail.com> | 2025-11-01 04:14:36 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 12:14:36 -0700 |
| commit | 312bdcb79babd6fc18bda92e7d6ed711cdc8dbe9 (patch) | |
| tree | 82ad2a43fd9d84d9f8999e8ad41d254285148700 | |
| parent | fix(bash): fix issues with intermediate key sequences in the vi editing mode ... (diff) | |
| download | atuin-312bdcb79babd6fc18bda92e7d6ed711cdc8dbe9.zip | |
fix(bash/blesh): suppress error message for auto-complete source (#2976)
This patch tries to port a change for zsh-autosuggestion in #2780 to
suppress the error messages in typing the command. The same issue
happens with ble.sh, so we want to suppress the error message in the
same way as with zsh-autosuggestion.
## Checks
- [x] I am happy for maintainers to push small adjustments to this PR,
to speed up the review cycle
- [x] I have checked that there are no existing pull requests for the
same thing
| -rw-r--r-- | crates/atuin/src/shell/atuin.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/atuin/src/shell/atuin.bash b/crates/atuin/src/shell/atuin.bash index 1bbb1d2c..63730d0b 100644 --- a/crates/atuin/src/shell/atuin.bash +++ b/crates/atuin/src/shell/atuin.bash @@ -312,7 +312,7 @@ __atuin_initialize_blesh() { # function ble/complete/auto-complete/source:atuin-history { local suggestion - suggestion=$(ATUIN_QUERY="$_ble_edit_str" atuin search --cmd-only --limit 1 --search-mode prefix) + suggestion=$(ATUIN_QUERY="$_ble_edit_str" atuin search --cmd-only --limit 1 --search-mode prefix 2>/dev/null) [[ $suggestion == "$_ble_edit_str"?* ]] || return 1 ble/complete/auto-complete/enter h 0 "${suggestion:${#_ble_edit_str}}" '' "$suggestion" } |
