From 7a3bcc5cc61d91353f75dde5399d8c1859b90d97 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sun, 7 Feb 2021 19:49:38 +0200 Subject: [PATCH] [zsh] use Python 3 by default on macOS --- zsh/path.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zsh/path.zsh b/zsh/path.zsh index 19c4695..16e85bd 100644 --- a/zsh/path.zsh +++ b/zsh/path.zsh @@ -44,9 +44,11 @@ if (( _is_macos )); then if [[ -d "$formula_path/lib/pkgconfig" ]]; then path_prepend pkg_config_path "$formula_path/lib/pkgconfig" fi - done + done; unset formula - unset formula + # Use Python 3 executables by default, i.e. when a version suffix (`python3`) + # is not specified. + path_prepend path /usr/local/opt/python@3/libexec/bin fi if (( _is_macos )); then