zsh:zprofile: Add /Library/Apple/usr/bin to PATH

When under macos add /Library/Apple/usr/bin to the PATH.
This commit is contained in:
2021-03-10 13:50:05 +01:00
parent c09033ed21
commit ed55fc14dc

View File

@@ -37,6 +37,9 @@ fi
if [[ ! "$PATH" =~ "$HOME/\.local/bin" ]]; then
export PATH="$HOME/.local/bin${PATH:+:$PATH}"
fi
if [[ $OSTYPE =~ darwin && ! $PATH =~ "/Library/Apple/usr/bin" ]]; then
export PATH="${PATH:+$PATH:}/Library/Apple/usr/bin"
fi
# Locale settings as $LANG
[[ ! -e "$XDG_CONFIG_HOME/locale.conf" ]] || . "$XDG_CONFIG_HOME/locale.conf"