Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Support non- /usr/local/ paths for Homebrew prefix #5

Open
JamesMcMahon opened this issue Sep 10, 2017 · 2 comments
Open

Support non- /usr/local/ paths for Homebrew prefix #5

JamesMcMahon opened this issue Sep 10, 2017 · 2 comments

Comments

@JamesMcMahon
Copy link

I use a custom path for my Homebrew prefix. When installing kr through the tap I needed to go in and manually clean up my .ssh/config and replace /usr/local/ with my custom prefix.

Would it be possible to support this out of the box?

@kcking
Copy link
Contributor

kcking commented Sep 11, 2017

Have you exported the HOMEBREW_PREFIX environment variable? kr reads this during kr pair and uses it instead of /usr/local if it is set (the exact logic is here: https:/kryptco/kr/blob/2f43a8bb0ce036420580320558e7ff9f8b065bc1/kr/kr_darwin.go#L17)

@JamesMcMahon
Copy link
Author

JamesMcMahon commented Sep 12, 2017

No, now that I look at it I didn't have HOMEBREW_PREFIX set. I may have missed but looking through the docs I don't see that ever called out as something that to be set to apply a non-standard prefix. My concern would be that no one else would have this set since it's really not called out by Homebrew.

Just spit balling here, but is it possible to resolve brew --prefix to determine the prefix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants