added npm to path

This commit is contained in:
Niklas Kapelle 2020-12-18 18:09:21 +01:00
parent db4bd5ba75
commit 1c2ad6327c
2 changed files with 2 additions and 1 deletions

View File

@ -22,3 +22,4 @@ export WINEPREFIX="$XDG_DATA_HOME/wine"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup" export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
export CARGO_INSTALL_ROOT="$XDG_DATA_HOME/cargo" export CARGO_INSTALL_ROOT="$XDG_DATA_HOME/cargo"
export NPM_CONFIG_CACHE="$XDG_CACHE_HOME/npm" export NPM_CONFIG_CACHE="$XDG_CACHE_HOME/npm"
export NPM_PACKAGES="$XDG_DATA_HOME/npm_global"

2
.zshrc
View File

@ -22,7 +22,7 @@
# - pkgfile # - pkgfile
# - trash-cli (with gvfs) # - trash-cli (with gvfs)
export PATH=$HOME/.local/bin:$HOME/.dotnet/tools:$PATH export PATH=$HOME/.local/bin:$HOME/.dotnet/tools:$XDG_DATA_HOME/npm_global/bin:$PATH
[[ $- != *i* ]] && return [[ $- != *i* ]] && return