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

This commit is contained in:
Eric Freese committed 2016-02-07 15:35:43 -07:00
1 parent 48d2dc1091
commit 00bd0e9125
9 files changed
+40 -47

No files matched your search

+4 -1
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