Skip to content
Myr

Fixes issue 199

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes issue 199 where the bash completion was not working in ZSH because the builtin bash command `complete` was not found. The fix executes the `bashcompinit` command which creates the `complete` function for the Z shell.

authored by Christopher Roach · committed by Christopher Roach · parent 0ec339e · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:bash_completion+7 added
77 unmodified lines
7879 return 080}8182# complete is a bash builtin, but recent versions of ZSH come with a function 83# called bashcompinit that will create a complete in ZSH. If the user is in 84# ZSH, load and run bashcompinit before calling the complete function.85if [[ -n ${ZSH_VERSION-} ]]; then86 autoload -U +X bashcompinit && bashcompinit87fi8889complete -o default -o nospace -F __nvm nvm