mirror of https://gitlab.com/dabruh/dotfiles.git
Prepend homebrew rather than append to PATH
This commit is contained in:
parent
1e94ea2f71
commit
1611525077
|
@ -107,7 +107,7 @@ append_paths=()
|
||||||
HOMEBREW_PREFIX="$XDG_DATA_HOME/homebrew"
|
HOMEBREW_PREFIX="$XDG_DATA_HOME/homebrew"
|
||||||
if [ -x "$HOMEBREW_PREFIX/bin/brew" ]; then
|
if [ -x "$HOMEBREW_PREFIX/bin/brew" ]; then
|
||||||
eval "$("$HOMEBREW_PREFIX/bin/brew" shellenv)"
|
eval "$("$HOMEBREW_PREFIX/bin/brew" shellenv)"
|
||||||
append_paths+=("$HOMEBREW_PREFIX/bin" "$HOMEBREW_PREFIX/sbin")
|
prepend_paths+=("$HOMEBREW_PREFIX/bin" "$HOMEBREW_PREFIX/sbin")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm_path_entries "${prepend_paths[@]}" "${append_paths[@]}" # Ensure we clean up first
|
rm_path_entries "${prepend_paths[@]}" "${append_paths[@]}" # Ensure we clean up first
|
||||||
|
|
Loading…
Reference in New Issue