mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-06-05 11:56:28 +08:00
Merge b8eea8eedb
into 745291dcf2
This commit is contained in:
commit
14faca9e2f
@ -74,7 +74,13 @@ _zsh_nvm_load() {
|
|||||||
_zsh_nvm_completion() {
|
_zsh_nvm_completion() {
|
||||||
|
|
||||||
# Add provided nvm completion
|
# Add provided nvm completion
|
||||||
[[ -r $NVM_DIR/bash_completion ]] && source $NVM_DIR/bash_completion
|
# default
|
||||||
|
if [[ -f "$NVM_DIR/bash_completion" ]]; then
|
||||||
|
source "$NVM_DIR/bash_completion"
|
||||||
|
# homebrew
|
||||||
|
elif _zsh_nvm_has brew && [[ -f "$(brew --prefix nvm)/etc/bash_completion.d/nvm" ]]; then
|
||||||
|
source "$(brew --prefix nvm)/etc/bash_completion.d/nvm"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_zsh_nvm_lazy_load() {
|
_zsh_nvm_lazy_load() {
|
||||||
|
Loading…
Reference in New Issue
Block a user