Speedup pass on macOS and brew

pass-maillinglist at artursterz.de pass-maillinglist at artursterz.de
Wed Oct 24 15:11:21 CEST 2018


> Well, on my installation I have:
> 
> brew --prefix gnu-getopt
> /Users/jlaffaye/homebrew/opt/gnu-getopt

Okay, fair enough. Then we should have a fallback.

> I also want to suggest adding an environment variable to specify the location to not run this discovery step, so people in my situation can avoid calling brew each time they call pass.

This is a quite good idea. I would suggest to have a ENV variable to the path. If the variable is not set, pass will look up the prefix in two or three default locations, as we currently propose with the for loop. If there is no gnu-getopt, fire up brew —prefix gnu-getopt as a fallback.

Maybe this for loop could also be avoided if the three paths are added to $PATH when the script starts?

I will think about this and post a patch as soon as I am satisfied.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20181024/90dd865f/attachment.html>


More information about the Password-Store mailing list