mirror of
https://github.com/atuinsh/atuin.git
synced 2025-06-20 09:58:00 +02:00
fix(zsh): zsh_autosuggest_strategy for no-unset environment (#1486)
* fix for zsh no-unset environments * fix zsh_autosuggest_strategy for no-unset environment
This commit is contained in:
parent
34baad290c
commit
f44db9d7f9
@ -17,7 +17,12 @@ zmodload zsh/datetime 2>/dev/null
|
||||
_zsh_autosuggest_strategy_atuin() {
|
||||
suggestion=$(atuin search --cmd-only --limit 1 --search-mode prefix "$1")
|
||||
}
|
||||
ZSH_AUTOSUGGEST_STRATEGY=("atuin" "${ZSH_AUTOSUGGEST_STRATEGY[@]}")
|
||||
|
||||
if [ -n "${ZSH_AUTOSUGGEST_STRATEGY:-}" ]; then
|
||||
ZSH_AUTOSUGGEST_STRATEGY=("atuin" "${ZSH_AUTOSUGGEST_STRATEGY[@]}")
|
||||
else
|
||||
ZSH_AUTOSUGGEST_STRATEGY=("atuin")
|
||||
fi
|
||||
|
||||
export ATUIN_SESSION=$(atuin uuid)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user