Add feature detection

Checks whether `zpty` gives a file descriptor, which was not the case in
older versions of zsh.

Based on a4b2f81c96/async.zsh (L395-L401)
This commit is contained in:
Eric Freese
2017-01-26 16:35:33 -07:00
parent 3f57198d07
commit 78ba07179a
4 changed files with 41 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
_zsh_autosuggest_start() {
add-zsh-hook -d precmd _zsh_autosuggest_start
_zsh_autosuggest_feature_detect
_zsh_autosuggest_check_deprecated_config
_zsh_autosuggest_bind_widgets
}