[Fix] Add autocompletion support to zsh

Fixes #1707.
This commit is contained in:
Brian M. Jemilo II
2018-04-09 14:54:28 -05:00
committed by Jordan Harband
parent 37e0977e60
commit 68fe26a5e4
3 changed files with 14 additions and 8 deletions

View File

@@ -92,6 +92,7 @@ __nvm ()
# ZSH, load and run bashcompinit before calling the complete function.
if [[ -n ${ZSH_VERSION-} ]]; then
autoload -U +X bashcompinit && bashcompinit
autoload -U +X compinit && compinit
fi
complete -o default -F __nvm nvm