direnv: Automatically install with use_nvm
This commit is contained in:
parent
d026df79bb
commit
ea4d4e1e5e
1 changed files with 4 additions and 4 deletions
|
|
@ -62,10 +62,10 @@ read_version_file()
|
|||
use_nvm() {
|
||||
local node_version="$1"
|
||||
|
||||
nvm_sh="${NVM_DIR}/nvm.sh"
|
||||
source $nvm_sh
|
||||
# Make sure to run `nvm install $node_version` first.
|
||||
nvm use $node_version
|
||||
source "${NVM_DIR}/nvm.sh"
|
||||
|
||||
# This automatically does `nvm use` afterward.
|
||||
nvm install "$node_version"
|
||||
}
|
||||
|
||||
# From https://github.com/direnv/direnv/wiki/Python#poetry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue