Debian Codegraph @

.envrc.template

raw
1 # source https://github.com/direnv/direnv/wiki/Node#using-nvm
2
3 # It's possible to use nvm to manage Node versions and direnv to load them.
4 # For this add the following function (drop the # at the beginning) to the ~/.config/direnv/direnvrc file:
5 # use_nvm() {
6 # local node_version=$1
7 #
8 # nvm_sh="$NVM_DIR/nvm.sh"
9 # if [[ -e $nvm_sh ]]; then
10 # source $nvm_sh
11 # nvm use $node_version
12 # fi
13 # }
14
15 # so the following line picks up .nvmrc/.node-version file
16 # to setup the right node version for development
17
18 use nvm