From 4fce36e27b5122d6e2c13e6d9517887937fb68ce Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Mon, 4 Dec 2017 21:38:30 +0000 Subject: [PATCH] Add Homebrew python to PATH if present --- zshenv | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshenv b/zshenv index a07336d..4ca68bc 100644 --- a/zshenv +++ b/zshenv @@ -11,6 +11,10 @@ SAVEHIST=5000 # Enable time stats for long lasting commands REPORTTIME=5 +# Add Homebrew python to PATH on macOS if present +[ "`uname`" = "Darwin" ] && [ -d /usr/local/opt/python/libexec/bin ] && + PATH=/usr/local/opt/python/libexec/bin:$PATH + # Add ~/.local to the environment fpath+=$HOME/.local/share/zsh/site-functions PATH=$HOME/.local/bin:$PATH