From 7eec4417682b94df57fc356064cde7d93b02696f Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Fri, 27 Mar 2015 10:22:05 -0400 Subject: [PATCH] don't assume nodenv is installed in $HOME homebrew installations, for example, are frequently installed in /usr/local/var/nodenv $(nodenv root) gives the actual install location (whether configured by $NODENV_ROOT or the default) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 616ae20..a5c6719 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,11 @@ before spawning Node processes. ## Installation To install nodenv-vars, clone this repository into your -`~/.nodenv/plugins` directory. (You'll need a recent version of nodenv +`$(nodenv root)/plugins` directory. (You'll need a recent version of nodenv that supports plugin bundles.) - $ mkdir -p ~/.nodenv/plugins - $ cd ~/.nodenv/plugins + $ mkdir -p $(nodenv root)/plugins + $ cd $(nodenv root)/plugins $ git clone https://github.com/OiNutter/nodenv-vars.git ## Usage @@ -40,7 +40,7 @@ Spaces are allowed in values; quoting is not necessary. Expansion and command substitution are not allowed. Lines beginning with `#` or any lines not in the format VAR=value will be ignored. -Variables specified in the `~/.nodenv/vars` file will be set +Variables specified in the `$(nodenv root)/vars` file will be set first. Then variables specified in `.nodenv-vars` files in any parent directories of the current directory will be set. Variables from the `.nodenv-vars` file in the current directory are set last.