Add spec for completion strategy

This commit is contained in:
Eric Freese
2018-05-23 22:04:47 -06:00
parent 7d19f8f9b2
commit 973205005c
4 changed files with 39 additions and 3 deletions

View File

@@ -9,7 +9,10 @@
_zsh_autosuggest_capture_setup() {
zmodload zsh/zutil # For `zparseopts`
autoload compinit && compinit
# Ensure completions have been initialized
if ! whence compdef >/dev/null; then
autoload -Uz compinit && compinit
fi
# There is a bug in zpty module (fixed in zsh/master) by which a
# zpty that exits will kill all zpty processes that were forked