Add xdg wrappers for node and npm
This commit is contained in:
parent
ef0ddc9681
commit
cfcdf95814
4
xdg-wrappers/node
Executable file
4
xdg-wrappers/node
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/zsh
|
||||
source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh
|
||||
export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history
|
||||
$(next-in-path node $0) $@
|
4
xdg-wrappers/npm
Executable file
4
xdg-wrappers/npm
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/zsh
|
||||
source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh
|
||||
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
|
||||
$(next-in-path npm $0) $@
|
Loading…
Reference in a new issue