2016-02-05 23:14:08 +01:00
|
|
|
|
2016-02-14 08:29:43 +01:00
|
|
|
#--------------------------------------------------------------------#
|
|
|
|
# Start #
|
|
|
|
#--------------------------------------------------------------------#
|
2016-02-05 23:14:08 +01:00
|
|
|
|
|
|
|
# Start the autosuggestion widgets
|
2016-02-07 22:21:57 +01:00
|
|
|
_zsh_autosuggest_start() {
|
2017-01-27 00:35:33 +01:00
|
|
|
_zsh_autosuggest_feature_detect
|
2016-02-05 23:14:08 +01:00
|
|
|
_zsh_autosuggest_bind_widgets
|
2017-01-27 00:37:42 +01:00
|
|
|
|
2017-01-27 23:18:26 +01:00
|
|
|
if [ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]; then
|
|
|
|
_zsh_autosuggest_async_start
|
|
|
|
fi
|
2016-02-05 23:14:08 +01:00
|
|
|
}
|
2016-02-07 22:21:57 +01:00
|
|
|
|
2017-01-27 23:18:26 +01:00
|
|
|
# Start the autosuggestion widgets on the next precmd
|
2016-02-07 22:21:57 +01:00
|
|
|
add-zsh-hook precmd _zsh_autosuggest_start
|