Skip to content

Commit

Permalink
don't assume nodenv is installed in $HOME
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jasonkarns committed Mar 27, 2015
1 parent 38a807a commit 7eec441
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7eec441

Please sign in to comment.