{"action":"created","issue":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/3597","labels_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/3597/labels{/name}","comments_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/3597/comments","events_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/3597/events","html_url":"https://github.com/caskroom/homebrew-cask/issues/3597","id":29630820,"number":3597,"title":"Automatically modify $PATH with /etc/paths.d","user":{"login":"szhu","id":1570168,"avatar_url":"https://avatars.githubusercontent.com/u/1570168?v=3","gravatar_id":"","url":"https://api.github.com/users/szhu","html_url":"https://github.com/szhu","followers_url":"https://api.github.com/users/szhu/followers","following_url":"https://api.github.com/users/szhu/following{/other_user}","gists_url":"https://api.github.com/users/szhu/gists{/gist_id}","starred_url":"https://api.github.com/users/szhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szhu/subscriptions","organizations_url":"https://api.github.com/users/szhu/orgs","repos_url":"https://api.github.com/users/szhu/repos","events_url":"https://api.github.com/users/szhu/events{/privacy}","received_events_url":"https://api.github.com/users/szhu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caskroom/homebrew-cask/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"rolandwalker","id":727482,"avatar_url":"https://avatars.githubusercontent.com/u/727482?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandwalker","html_url":"https://github.com/rolandwalker","followers_url":"https://api.github.com/users/rolandwalker/followers","following_url":"https://api.github.com/users/rolandwalker/following{/other_user}","gists_url":"https://api.github.com/users/rolandwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandwalker/subscriptions","organizations_url":"https://api.github.com/users/rolandwalker/orgs","repos_url":"https://api.github.com/users/rolandwalker/repos","events_url":"https://api.github.com/users/rolandwalker/events{/privacy}","received_events_url":"https://api.github.com/users/rolandwalker/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2014-03-18T09:38:17Z","updated_at":"2015-07-24T16:20:57Z","closed_at":"2015-07-24T16:20:57Z","body":"MacTeX and some other software packages install binaries to non-standard locations. This necessitates caveats like the one added by #2284:\r\n\r\n    ==> Caveats\r\n    To use mactex, you may need to add the /usr/texbin directory\r\n    to your PATH environment variable, eg (for bash shell):\r\n\r\n      export PATH=/usr/texbin:\"$PATH\"\r\n\r\nThere'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.\r\n\r\nNot 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. \r\n\r\n[path_helper]: https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man8/path_helper.8.html"},"comment":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/comments/124571725","html_url":"https://github.com/caskroom/homebrew-cask/issues/3597#issuecomment-124571725","issue_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/3597","id":124571725,"user":{"login":"vitorgalvao","id":1699443,"avatar_url":"https://avatars.githubusercontent.com/u/1699443?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorgalvao","html_url":"https://github.com/vitorgalvao","followers_url":"https://api.github.com/users/vitorgalvao/followers","following_url":"https://api.github.com/users/vitorgalvao/following{/other_user}","gists_url":"https://api.github.com/users/vitorgalvao/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorgalvao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorgalvao/subscriptions","organizations_url":"https://api.github.com/users/vitorgalvao/orgs","repos_url":"https://api.github.com/users/vitorgalvao/repos","events_url":"https://api.github.com/users/vitorgalvao/events{/privacy}","received_events_url":"https://api.github.com/users/vitorgalvao/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T16:20:57Z","updated_at":"2015-07-24T16:20:57Z","body":"Closing for lack of interest/implementation. This is definitely non-urgent, and can be revisited later."}}