diff options
author | Stuart Knightley <stuart@stuartk.com> | 2013-02-08 03:27:23 +0400 |
---|---|---|
committer | Nathan Zadoks <nathan@nathan7.eu> | 2013-02-11 00:37:32 +0400 |
commit | a12f16c29fa7dab143b6a320b9617fcd50ebfd69 (patch) | |
tree | 144484132312544b312f503c335adc2b8cb3a0c3 /doc | |
parent | 2ed2a4c49c0051ca8511c9553a3f3e11b86907a3 (diff) |
Add info about env vars in config file
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cli/config.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/cli/config.md b/doc/cli/config.md index 3deafce5f..e48957ba8 100644 --- a/doc/cli/config.md +++ b/doc/cli/config.md @@ -36,11 +36,15 @@ work the same. `$HOME/.npmrc` (or the `userconfig` param, if set above) This file is an ini-file formatted list of `key = value` parameters. +Environment variables can be replaced using `${VARIABLE_NAME}`. For example: + + prefix = ${HOME}/.npm-packages ### Global config file `$PREFIX/etc/npmrc` (or the `globalconfig` param, if set above): -This file is an ini-file formatted list of `key = value` parameters +This file is an ini-file formatted list of `key = value` parameters. +Environment variables can be replaced as above. ### Built-in config file |