From 604ae40b9dee24e3ebe66cbc1ef1020683a34699 Mon Sep 17 00:00:00 2001 From: Mattias Eriksson Date: Fri, 5 Jan 2024 18:17:46 +0100 Subject: [PATCH] fix: Prevent input to be interpreted as options for zsh autosuggestions (#1506) Co-authored-by: Mattias Eriksson --- atuin/src/shell/atuin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atuin/src/shell/atuin.zsh b/atuin/src/shell/atuin.zsh index 430067b2..d5277f4b 100644 --- a/atuin/src/shell/atuin.zsh +++ b/atuin/src/shell/atuin.zsh @@ -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