mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
This adds the nvmng plugin, which loads nvm with the flag --fast-reuse, which is exposed by nvm-ng. This is a hard fork of nvm which contains patches that accelerate load time for nvm, to get back to a more smooth behavior of your shell. Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
5 lines
186 B
Bash
5 lines
186 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" --fast-reuse
|