mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-07-04 06:33:42 +00:00
Merge 205117bed46a31a5dbde56b659720f2ecfe306ee into 3fe12f0a49487a666bb9e31f4fe05b50c39f74e8
This commit is contained in:
commit
cec89f8a80
@ -79,4 +79,11 @@ __nvm ()
|
|||||||
return 0
|
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
|
complete -o default -o nospace -F __nvm nvm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user