mirror of
https://github.com/atuinsh/atuin.git
synced 2025-01-12 17:28:16 +01: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:
parent
e129f7a93e
commit
604ae40b9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user