Prepend homebrew rather than append to PATH

This commit is contained in:
dabruh 2024-04-12 13:41:52 +02:00
parent 1e94ea2f71
commit 1611525077
1 changed files with 1 additions and 1 deletions

View File

@ -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