From a2d253384a57a0c7e2fa31417e7f7d28e87e6dab Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 15 Jan 2018 09:08:30 +1100 Subject: [PATCH] Add support for tj/n, using ~/.local as the prefix - this integrates quite nicely with the other stuff that goes in ~/.local, such as global npm packages --- config/zsh/login/npm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/zsh/login/npm b/config/zsh/login/npm index 5d74ce6..5f8b56b 100644 --- a/config/zsh/login/npm +++ b/config/zsh/login/npm @@ -1,3 +1,4 @@ #! zsh +: ${N_PREFIX:=$HOME/.local} : ${NPM_CONFIG_USERCONFIG:=$XDG_CONFIG_HOME/npm/config} -export NPM_CONFIG_USERCONFIG +export N_PREFIX NPM_CONFIG_USERCONFIG