0.1.6 • Published 7 years ago

os-env-setter v0.1.6

Weekly downloads
27
License
MIT
Repository
github
Last release
7 years ago

os-env-setter

A simple tool to setup global environment variables CROSS different os platforms.

How to use it?

First install it: npm install os-env-setter.

var osEnvSetter = require('os-env-setter');

osEnvSetter({
    JAVA_HOME: '/opt/java',
    ANOTHER_ENV_KEY: 'another env value'
});

What it does?

  • on MacOs, write env to ~/.bash_profile
  • on Linux, write env to ~/.bashrc
  • on Windows, call setx to set global env

For Linux, you should be ware of defference between login and not-login shell.

(If you don't, just add a line source .bashrc; to ~/.bash_profile on Linux. Some Linux OS already did this.)

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago