Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
41.11k stars 9.65k forks source link

Add a way to append linuxbrew to the end of path. #17477

Closed s0urce-c0de closed 4 months ago

s0urce-c0de commented 4 months ago

Verification

Provide a detailed description of the proposed feature

Add a flag that adds linuxbrew to the end of path instead of the start.

What is the motivation for the feature?

On my linux system, I prefer using system installed binaries before homebrew install ones.

How will the feature be relevant to at least 90% of Homebrew users?

It let them use system installed binaries instead of all homebrew binaries. This may also affect SUID root binaries like mount.

What alternatives to the feature have been considered?

Using some sort of complicated sed statement.

MikeMcQuaid commented 4 months ago

Add a flag

To what?

s0urce-c0de commented 4 months ago

/home/linuxbrew/.linuxbrew/bin/brew shellenv. Mabye add --end-of-path

MikeMcQuaid commented 4 months ago

If it's not added to the front of your PATH brew doctor will (intentionally) complain. Sorry, passing on this.