Corrext homebrew rc script

Add path to bin and sbin in the end od PATH
This commit is contained in:
Martin Blazik
2022-08-24 14:49:33 +02:00
parent c6609a8b6e
commit 355384b115

View File

@@ -2,6 +2,10 @@ nop ${BREW_HOME:=/home/linuxbrew}
nop ${BREW:="$BREW_HOME/.linuxbrew/bin/brew"} nop ${BREW:="$BREW_HOME/.linuxbrew/bin/brew"}
if [[ -e "$BREW" ]]; then if [[ -e "$BREW" ]]; then
path_backup="$PATH"
eval "$($BREW shellenv)" eval "$($BREW shellenv)"
fi PATH="$path_backup"
append_path "$HOMEBREW_PREFIX/bin"
append_path "$HOMEBREW_PREFIX/sbin"
fi