From 1ed92343e97309a0bb77f32c0f0c7499e1fd4393 Mon Sep 17 00:00:00 2001 From: Starfall Date: Tue, 16 May 2023 12:23:04 -0500 Subject: npm: install 'global' to user --- .config/zsh/.zshenv | 4 ++++ 1 file changed, 4 insertions(+) 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.: -- cgit