diff options
author | Starfall <us@starfall.systems> | 2023-05-16 12:23:04 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2023-05-16 12:23:04 -0500 |
commit | 1ed92343e97309a0bb77f32c0f0c7499e1fd4393 (patch) | |
tree | 7ebdb5ce9b84d0c1b0753c3fff17a012604ebda5 /.config | |
parent | 4ffb3997138400a6efe3827f5895b1295655ac36 (diff) |
npm: install 'global' to user
Diffstat (limited to '.config')
-rw-r--r-- | .config/zsh/.zshenv | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv index 819e611..ce62ecf 100644 --- a/.config/zsh/.zshenv +++ b/.config/zsh/.zshenv @@ -18,6 +18,10 @@ fi [[ -f "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env" +if command -v npm &> /dev/null; then + export npm_config_prefix="$HOME/.local" +fi + if command -v bat &> /dev/null; then export MANPAGER="sh -c 'col -bx | bat --plain --language man'" # note that mandoc needs a wrapper script e.g.: |