From 312bdcb79babd6fc18bda92e7d6ed711cdc8dbe9 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 1 Nov 2025 04:14:36 +0900 Subject: 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 --- crates/atuin/src/shell/atuin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- cgit v1.3.1