aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Eriksson <mattias.eriksson@tutanota.com>2024-01-05 18:17:46 +0100
committerGitHub <noreply@github.com>2024-01-05 17:17:46 +0000
commit604ae40b9dee24e3ebe66cbc1ef1020683a34699 (patch)
treeda99953981b878410d2c616232c899350309a6a4
parentfeat: enable enhanced keyboard mode (#1505) (diff)
downloadatuin-604ae40b9dee24e3ebe66cbc1ef1020683a34699.zip
fix: Prevent input to be interpreted as options for zsh autosuggestions (#1506)
Co-authored-by: Mattias Eriksson <snaggen@mayam.com>
-rw-r--r--atuin/src/shell/atuin.zsh2
1 files changed, 1 insertions, 1 deletions
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