mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-02-08 05:09:30 +08:00
![Luke Childs](/assets/img/avatar_default.png)
* Export $NVM_DIR if it doesn't exist and use it when looking for nvm * Use $NVM_DIR when looking for nvm for completion * Use $NVM_DIR when looking for nvm in nvm_prompt_info
6 lines
173 B
Bash
6 lines
173 B
Bash
# Set NVM_DIR if it isn't already defined
|
|
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
|
|
|
|
# Load nvm if it exists
|
|
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
|