mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-03 09:49:26 +00:00
Add support for nvm
This commit is contained in:
committed by
Sorin Ionescu
parent
d198c08db5
commit
185235003e
@ -1,10 +1,16 @@
|
||||
#
|
||||
# Completes npm.
|
||||
# Loads the Node Version Manager and enables npm completion.
|
||||
#
|
||||
# Authors:
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
# Zeh Rizzatti <zehrizzatti@gmail.com>
|
||||
#
|
||||
|
||||
# Load NVM into the shell session.
|
||||
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
|
||||
source "$HOME/.nvm/nvm.sh"
|
||||
fi
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[node] )); then
|
||||
return 1
|
||||
|
Reference in New Issue
Block a user