Skip to content

Commit

Permalink
fix(bash): prevent input to be interpreted as options for blesh auto-…
Browse files Browse the repository at this point in the history
…complete (#1511)

Apply the change for zsh-autosuggestions in
#1506 to the code for blesh
auto-complete.
  • Loading branch information
akinomyoga committed Jan 6, 2024
1 parent 86f2c8e commit 179c6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atuin/src/shell/atuin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ if [[ -n "${BLE_VERSION-}" ]] && ((_ble_version >= 400)); then
#
function ble/complete/auto-complete/source:atuin-history {
local suggestion
suggestion=$(atuin search --cmd-only --limit 1 --search-mode prefix "$_ble_edit_str")
suggestion=$(atuin search --cmd-only --limit 1 --search-mode prefix -- "$_ble_edit_str")
[[ $suggestion == "$_ble_edit_str"?* ]] || return 1
ble/complete/auto-complete/enter h 0 "${suggestion:${#_ble_edit_str}}" '' "$suggestion"
}
Expand Down

1 comment on commit 179c6d2

@vercel
Copy link

@vercel vercel bot commented on 179c6d2 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

atuin-docs – ./

atuin-docs-atuin.vercel.app
atuin-docs.vercel.app
atuin-docs-git-main-atuin.vercel.app

Please sign in to comment.