{"id":21116189,"url":"https://github.com/arouanet/path-helper","last_synced_at":"2026-04-13T21:32:15.998Z","repository":{"id":183008964,"uuid":"155554878","full_name":"arouanet/path-helper","owner":"arouanet","description":"Emacs Lisp package to set PATH environment variables from configuration files","archived":false,"fork":false,"pushed_at":"2018-12-12T08:49:22.000Z","size":39,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-27T00:40:15.176Z","etag":null,"topics":["emacs","emacs-lisp","environment","macos"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arouanet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-10-31T12:37:00.000Z","updated_at":"2024-07-03T10:20:51.000Z","dependencies_parsed_at":"2023-07-22T12:32:28.806Z","dependency_job_id":"b6a1afae-0ec9-4dc1-93cc-841b6960f6de","html_url":"https://github.com/arouanet/path-helper","commit_stats":null,"previous_names":["arouanet/path-helper"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/arouanet/path-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arouanet%2Fpath-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arouanet%2Fpath-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arouanet%2Fpath-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arouanet%2Fpath-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arouanet","download_url":"https://codeload.github.com/arouanet/path-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arouanet%2Fpath-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31771822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emacs","emacs-lisp","environment","macos"],"created_at":"2024-11-20T02:21:50.676Z","updated_at":"2026-04-13T21:32:15.959Z","avatar_url":"https://github.com/arouanet.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# path-helper\n\n[![MELPA](https://melpa.org/packages/path-helper-badge.svg)](https://melpa.org/#/path-helper)\n[![MELPA Stable](https://stable.melpa.org/packages/path-helper-badge.svg)](https://stable.melpa.org/#/path-helper)\n\nThis package replicates the behavior of the\n[path_helper](https://opensource.apple.com/source/shell_cmds/shell_cmds-203/path_helper/)\nutility shipped with macOS, used to augment the `PATH` and `MANPATH` environment\nvariables with path elements read respectively from `/etc/paths` and\n`/etc/paths.d/` for `PATH`, and from `/etc/manpaths` and `/etc/manpaths.d/` for\n`MANPATH`.\n\nThis is needed because macOS GUI applications are launched with a limited\ndefault environment which is not set from the user's login shell. While it is\npossible to configure `launchd` to use a different `PATH` variable (using\n`launchctl config user path`), another solution is to set the PATH after the\nfact during Emacs initialization, which is what this package is doing.\n\nThis is similar to what the\n[exec-path-from-shell](https://github.com/purcell/exec-path-from-shell) package\ndoes, but because path-helper does not need to spawn a shell to read the\nenvironment, it is much faster.\n\nAn obvious downside of this approach is that if the PATH is manually set\nelsewhere, such as in the user `.profile` file, it will not be visible to\npath-helper. But properly configured macOS packages such as\n[MacTeX](http://www.tug.org/mactex/), which contribute to the PATH by adding\na file in `/etc/paths.d/`, will work as expected.\n\n## Installation\n\nPath-helper is available from [MELPA](https://melpa.org/#/path-helper) and\n[MELPA Stable](https://stable.melpa.org/#/path-helper). Once MELPA is\n[configured](https://melpa.org/#/getting-started), simply run:\n\n    M-x package-install RET path-helper RET\n\n## Usage\n\nTo set all environment variables listed in `path-helper-variables`, add the\nfollowing to your init file:\n\n    (when (memq window-system '(ns mac))\n      (path-helper-setenv-all))\n\nOr, if using [use-package](https://github.com/jwiegley/use-package):\n\n    (use-package path-helper\n      :if (memq window-system '(mac ns))\n      :ensure t\n      :config\n      (path-helper-setenv-all))\n\nIf `path-helper-skip-undefined-variables` is non-nil (default), environment\nvariables are only set to a new value when they were previously set. This is\nbecause `MANPATH` is generally unset by default, and it is preferable to leave\nit unset and let `man` use its more sophisticated method of finding manual page\nfiles.\n\nYou can also call `path-helper-setenv` directly to set a single environment\nvariable, e.g.:\n\n    (path-helper-setenv \"PATH\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farouanet%2Fpath-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farouanet%2Fpath-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farouanet%2Fpath-helper/lists"}