From 0b9d5a48152cfd50ba8f230d4a2da182a5c6e2b0 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 21 Sep 2024 01:01:18 +0200 Subject: [PATCH] zprofile: Add npm/bin to PATH --- .config/zsh/.zprofile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index c68fa87..41fcf59 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -45,6 +45,9 @@ fi if [[ ! "$PATH" =~ "$HOME/\.local/bin" ]]; then export PATH="$HOME/.local/bin${PATH:+:$PATH}" fi +if [[ ! $PATH =~ "$HOME/\.local/share/npm/bin" ]]; then + export PATH="${PATH:+$PATH:}$HOME/.local/share/npm/bin" +fi if [[ $OSTYPE =~ darwin && ! $PATH =~ "/Library/Apple/usr/bin" ]]; then export PATH="${PATH:+$PATH:}/Library/Apple/usr/bin" fi