1
0
Fork 0

.profile, .config/npm: add npm config

main
urosm 2024-07-17 03:11:53 +02:00
parent 5320b2053b
commit c5f0bfe343
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
prefix=${XDG_DATA_HOME}/npm
cache=${XDG_CACHE_HOME}/npm
init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js
logs-dir=${XDG_STATE_HOME}/npm/logs

View File

@ -35,6 +35,9 @@ fi
# .inputrc
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
# .npm/, .npmrc
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
# editor
export EDITOR=vi