From db124794eff8322f28cde72d2ac52ee76ab30035 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 16 Jan 2020 23:23:15 +0000 Subject: [PATCH] Add unversioned brew python links to PATH The `python` Homebrew package installs unversioned links to Python 3 executables in `/usr/local/opt/python/libexec/bin`. Add this directory to the `PATH` environment variable when it's present. --- zshenv | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zshenv b/zshenv index 7bc396b..30c6205 100644 --- a/zshenv +++ b/zshenv @@ -22,6 +22,8 @@ INFOPATH=$HOME/.local/share/info:$INFOPATH # Add ccache to the PATH and use XDG base dir paths if [ `uname` = Darwin ]; then + [ -d /usr/local/opt/python/libexec/bin ] && \ + PATH=/usr/local/opt/python/libexec/bin:$PATH [ -f /usr/local/bin/ccache ] && \ PATH=/usr/local/opt/ccache/libexec:$PATH elif [ -f /usr/bin/ccache ]; then