mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Export $NVM_DIR if it doesn't exist and use it when looking for nvm
This commit is contained in:
parent
a7e30b26ba
commit
9df597f48c
1 changed files with 4 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# The addition 'nvm install' attempts in ~/.profile
|
||||
# Set NVM_DIR if it isn't already defined
|
||||
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
|
||||
|
||||
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh
|
||||
# Load nvm if it exists
|
||||
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue