diff --git a/config-default.js b/config-default.js index fdf2f036..c13f9168 100644 --- a/config-default.js +++ b/config-default.js @@ -51,6 +51,8 @@ module.exports = { // the shell to run when spawning a new session (i.e. /usr/local/bin/fish) // if left empty, your system's login shell will be used by default shell: '' + + // for advanced config flags please refer to https://hyperterm.org/#cfg }, // a list of plugins to fetch and install from npm diff --git a/plugins.js b/plugins.js index 89e3dca5..3c2510b2 100644 --- a/plugins.js +++ b/plugins.js @@ -191,6 +191,8 @@ function toDependencies (plugins) { function install (fn) { shellEnv().then((env) => { + let registry = exports.getDecoratedConfig().npmRegistry; + if (registry) env.NPM_CONFIG_REGISTRY = registry; exec('npm prune && npm install --production', { cwd: path, env: env