From f55005decad8cc20900a7e303fd5af9324dd0d60 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Mon, 22 Aug 2022 21:52:38 -0400 Subject: [PATCH] Use GNU tools on MacOS if they are installed --- chezmoi/dot_zshenv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chezmoi/dot_zshenv b/chezmoi/dot_zshenv index 7544105..e8ea0ab 100644 --- a/chezmoi/dot_zshenv +++ b/chezmoi/dot_zshenv @@ -21,6 +21,11 @@ if [ "$(uname)" = "Darwin" ]; then if [ -x /opt/homebrew/bin/brew ]; then eval "$(/opt/homebrew/bin/brew shellenv)" fi + + # Use GNU tools if they're installed :D + for d in "${HOMEBREW_PREFIX}/opt"/*/libexec/gnubin; do + export PATH="$d:$PATH" + done fi if [ -d "${HOME}/bin" ]; then