From aed9f9808209e527359c3381c0d38e2d289a5129 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Sat, 18 Nov 2023 20:58:59 -0800 Subject: [PATCH] Better approach to dealing with the switch in Homebrew --- ha-programming.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ha-programming.org b/ha-programming.org index 3be2919..206b9ff 100644 --- a/ha-programming.org +++ b/ha-programming.org @@ -34,7 +34,7 @@ Farm off commands into /virtual environments/: :init (setq direnv-always-show-summary t direnv-show-paths-in-summary t) - (if (ha-running-on-macos?) + (if (file-exists-p "/opt/homebrew") (setq direnv--executable "/opt/homebrew/bin/direnv") (setq direnv--executable "/usr/local/bin/direnv")) :config