check for deprecated 'default' value

This commit is contained in:
Conor Hopkins 2018-11-30 10:31:11 +00:00
parent a7f0106b31
commit 2aecead4f0

View File

@ -49,7 +49,9 @@ zmodload zsh/zpty
# Strategies to use to fetch a suggestion
# Will try each strategy in order until a suggestion is returned
(( ! ${+ZSH_AUTOSUGGEST_STRATEGY} )) && ZSH_AUTOSUGGEST_STRATEGY=(history)
if (( ! ${+ZSH_AUTOSUGGEST_STRATEGY} )) || [ "$ZSH_AUTOSUGGEST_STRATEGY" = "default" ];then
ZSH_AUTOSUGGEST_STRATEGY=(history)
fi
# Widgets that clear the suggestion
(( ! ${+ZSH_AUTOSUGGEST_CLEAR_WIDGETS} )) && ZSH_AUTOSUGGEST_CLEAR_WIDGETS=(