zprofile: Add npm/bin to PATH

This commit is contained in:
2024-09-21 01:01:18 +02:00
parent 04fb10687f
commit 0b9d5a4815

View File

@@ -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