From 1611525077119f4b66d390be53aaf55b7af78705 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Fri, 12 Apr 2024 13:41:52 +0200 Subject: [PATCH] Prepend homebrew rather than append to PATH --- .config/shell/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/shell/profile b/.config/shell/profile index 8521f4c..e2547a7 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -107,7 +107,7 @@ append_paths=() HOMEBREW_PREFIX="$XDG_DATA_HOME/homebrew" if [ -x "$HOMEBREW_PREFIX/bin/brew" ]; then eval "$("$HOMEBREW_PREFIX/bin/brew" shellenv)" - append_paths+=("$HOMEBREW_PREFIX/bin" "$HOMEBREW_PREFIX/sbin") + prepend_paths+=("$HOMEBREW_PREFIX/bin" "$HOMEBREW_PREFIX/sbin") fi rm_path_entries "${prepend_paths[@]}" "${append_paths[@]}" # Ensure we clean up first