mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-27 02:33:39 +08:00
a7de0fabd7
* 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"
|