1
0
Fork 0

direnv: Automatically install with use_nvm

This commit is contained in:
Jeremy Kaplan 2024-08-05 19:39:46 -04:00
commit ea4d4e1e5e

View file

@ -62,10 +62,10 @@ read_version_file()
use_nvm() { use_nvm() {
local node_version="$1" local node_version="$1"
nvm_sh="${NVM_DIR}/nvm.sh" source "${NVM_DIR}/nvm.sh"
source $nvm_sh
# Make sure to run `nvm install $node_version` first. # This automatically does `nvm use` afterward.
nvm use $node_version nvm install "$node_version"
} }
# From https://github.com/direnv/direnv/wiki/Python#poetry # From https://github.com/direnv/direnv/wiki/Python#poetry