From 24be2f3dbc5672117e02f17cc45b055dd6755771 Mon Sep 17 00:00:00 2001 From: "tan.que" Date: Tue, 24 Oct 2017 01:51:09 +0800 Subject: [PATCH] fix the warning from `brew doctor` when using global python3 --- plugins/pyenv/pyenv.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh index aa1f9488..d632d6df 100644 --- a/plugins/pyenv/pyenv.plugin.zsh +++ b/plugins/pyenv/pyenv.plugin.zsh @@ -33,3 +33,5 @@ unset pyenvdir if [ $FOUND_PYENV -eq 0 ] ; then function pyenv_prompt_info() { echo "system: $(python -V 2>&1 | cut -f 2 -d ' ')" } fi + +alias brew="env PATH=${PATH//$(pyenv root)\/shims:/} brew"