about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-05-16 12:23:04 -0500
committerStarfall <us@starfall.systems>2023-05-16 12:23:04 -0500
commit1ed92343e97309a0bb77f32c0f0c7499e1fd4393 (patch)
tree7ebdb5ce9b84d0c1b0753c3fff17a012604ebda5
parent4ffb3997138400a6efe3827f5895b1295655ac36 (diff)
npm: install 'global' to user
-rw-r--r--.config/zsh/.zshenv4
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.: