8000 GitHub - blahah/fix-path: Fix the $PATH on macOS when run from a GUI app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

blahah/fix-path

 
 

Repository files navigation

fix-path

Fix the $PATH on macOS when run from a GUI app

Useful for Electron apps as GUI apps on macOS doesn't inherit the $PATH defined in your dotfiles (.bashrc/.bash_profile/.zshrc/etc).

Install

$ npm install fix-path

Usage

const fixPath = require('fix-path');

console.log(process.env.PATH);
//=> '/usr/bin'

fixPath();

console.log(process.env.PATH);
//=> '/usr/local/bin:/usr/bin'

Related

About

Fix the $PATH on macOS when run from a GUI app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.9%
  • TypeScript 18.1%
0