From ed55fc14dcfdeefbb31e3fd22811a4f4c0d2517d Mon Sep 17 00:00:00 2001 From: druckdev Date: Wed, 10 Mar 2021 13:50:05 +0100 Subject: [PATCH] zsh:zprofile: Add /Library/Apple/usr/bin to PATH When under macos add /Library/Apple/usr/bin to the PATH. --- .config/zsh/.zprofile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 0a95424..99cdd44 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -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"