Browse Source

Merge pull request #200 from croach/issue-199

Fixes Issue 199
master
Tim Caswell 12 years ago
parent
commit
01189e144c
  1. 7
      bash_completion

7
bash_completion

@ -79,4 +79,11 @@ __nvm () @@ -79,4 +79,11 @@ __nvm ()
return 0
}
# complete is a bash builtin, but recent versions of ZSH come with a function
# called bashcompinit that will create a complete in ZSH. If the user is in
# ZSH, load and run bashcompinit before calling the complete function.
if [[ -n ${ZSH_VERSION-} ]]; then
autoload -U +X bashcompinit && bashcompinit
fi
complete -o default -o nospace -F __nvm nvm

Loading…
Cancel
Save