1
1
mirror of https://github.com/ellie/atuin.git synced 2024-09-17 16:07:18 +03:00

fix: Prevent input to be interpreted as options for zsh autosuggestions (#1506)

Co-authored-by: Mattias Eriksson <snaggen@mayam.com>
This commit is contained in:
Mattias Eriksson 2024-01-05 18:17:46 +01:00 committed by GitHub
parent e129f7a93e
commit 604ae40b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ zmodload zsh/datetime 2>/dev/null
# you'd like to override this, then add your config after the $(atuin init zsh)
# in your .zshrc
_zsh_autosuggest_strategy_atuin() {
suggestion=$(atuin search --cmd-only --limit 1 --search-mode prefix "$1")
suggestion=$(atuin search --cmd-only --limit 1 --search-mode prefix -- "$1")
}
if [ -n "${ZSH_AUTOSUGGEST_STRATEGY:-}" ]; then