-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically modify $PATH with /etc/paths.d #3597
Comments
+1 for adding the capability within homebrew-cask. For this specific package -- I believe that MacTeX already does create a file under |
If MacTeX already creates the file, then why is the caveat needed? |
Excellent question! We need to check closer. This is a particularly slow one to install/uninstall, so I'm sure it will be at least a few days before we come around to testing it. |
Haha, I've been trying to install it for a few days and I still haven't managed to download it intact. |
On a related note, any particular reason this download is so slow? Are there any faster mirrors available? |
Finally installed. It looks like MacTeX installs Related questions:
|
Your research on this is greatly appreciated! Now it is me waiting for the download. I've never found a really fast CTAN mirror either. The As to the Homebrew path, we try not to step on each others' toes. That setting would seem to make sense for users to do, or for Homebrew to do, but it shouldn't be part of this project. |
I can confirm that running the following code
installs with the contents
I can also confirm that |
@rolandwalker I added the caveat to BasicTeX in #2311. The reason the caveat was added in the first place due to Homebrew/legacy-homebrew#25719; it affects zsh users, because a default Homebrew zsh configuration doesn't necessarily import paths from |
Per discussion in Homebrew#3597 and Homebrew/legacy-homebrew#25719
It seems this was addressed in v0.32.0 (pull request #3699). Should this be closed? |
It's not completely addressed. From #3685 comment 38804186:
|
Yes, please keep this open as I am assigned and intend to implement. |
Heads-up, BasicTex doesn't seem to install anything to For reference: basictex.rb • mactex.rb |
Thanks. Then that's the perfect use-case for this proposed feature. |
Closing for lack of interest/implementation. This is definitely non-urgent, and can be revisited later. |
MacTeX and some other software packages install binaries to non-standard locations. This necessitates caveats like the one added by #2284:
There's actually a really elegant solution to appending to
$PATH
on OS X: Just add a file with the path to append in/etc/paths.d
. When shells start, they run path_helper, which parses/etc/path
and the files in/etc/paths.d
to construct the correct$PATH
. Such a "path file" would be easy for Homebrew to install and uninstall. Or, alternatively, a Cask "path file" could be installed that would contain all the paths of the currently installed formulae.Not only does this solution automate something that users would need to do by hand, but also it is, unlike the solution recommended by the caveat note, both auto-uninstallable and shell-agnostic.
The text was updated successfully, but these errors were encountered: