Use add-zsh-hook to remove need to call autosuggest_start.

This commit is contained in:
Eric Freese
2016-02-07 14:21:57 -07:00
parent 48d2dc1091
commit 00bd0e9125
9 changed files with 40 additions and 47 deletions

View File

@@ -4,7 +4,10 @@
#-------#
# Start the autosuggestion widgets
autosuggest_start() {
_zsh_autosuggest_start() {
_zsh_autosuggest_check_deprecated_config
_zsh_autosuggest_bind_widgets
}
autoload -Uz add-zsh-hook
add-zsh-hook precmd _zsh_autosuggest_start