config/npm: make it use xdg
https://wiki.archlinux.org/title/XDG_Base_Directory#Partial
This commit is contained in:
parent
da339ad705
commit
6f29d27cd1
|
@ -0,0 +1,3 @@
|
||||||
|
prefix=${XDG_DATA_HOME}/npm
|
||||||
|
cache=${XDG_CACHE_HOME}/npm
|
||||||
|
init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js
|
1
.zshenv
1
.zshenv
|
@ -44,6 +44,7 @@ export KREW_ROOT="$XDG_DATA_HOME"/krew
|
||||||
export CARGO_HOME="$XDG_STATE_HOME"/cargo
|
export CARGO_HOME="$XDG_STATE_HOME"/cargo
|
||||||
export RUSTUP_HOME="$XDG_STATE_HOME"/rustup
|
export RUSTUP_HOME="$XDG_STATE_HOME"/rustup
|
||||||
|
|
||||||
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
||||||
export NVM_DIR="$XDG_DATA_HOME"/nvm
|
export NVM_DIR="$XDG_DATA_HOME"/nvm
|
||||||
export N_PREFIX="$XDG_STATE_HOME"/n
|
export N_PREFIX="$XDG_STATE_HOME"/n
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue