afetch icon indicating copy to clipboard operation
afetch copied to clipboard

don't hardcode the Cellar path, use the env variable

Open i3d opened this issue 3 years ago • 3 comments

This would work always for various different installation configurations. It even works for Homebrew for other platforms like linuxbrew.

i3d avatar Apr 30 '21 06:04 i3d

Is changing the install to ~/.local a good idea? I don't think ~/.local/bin is in $PATH by default on lots of systems.

13-CF avatar May 17 '21 07:05 13-CF

Is changing the install to ~/.local a good idea? I don't think ~/.local/bin is in $PATH by default on lots of systems.

It's a bad idea. If you want to overwrite the install path with something less standard than /usr/local, call make with a specified PREFIX:

$ make install PREFIX="$HOME"/.local
$ make uninstall PREFIX="$HOME"/.local

kdx2a avatar May 17 '21 08:05 kdx2a

I suggest not printing an error message when the Cellar ENV var is not found and simply falling back to the original behavior

Jan200101 avatar Dec 26 '21 23:12 Jan200101