mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-02-06 09:55:31 +08:00
Source new nvm version after update
This commit is contained in:
parent
cfc2d02da6
commit
d02a2ac3f8
@ -34,6 +34,7 @@ nvm_update() {
|
|||||||
else
|
else
|
||||||
echo "Updating to $latest_version..."
|
echo "Updating to $latest_version..."
|
||||||
$(cd "$NVM_DIR" && git fetch && git checkout "$latest_version")
|
$(cd "$NVM_DIR" && git fetch && git checkout "$latest_version")
|
||||||
|
source "$NVM_DIR/nvm.sh"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user