'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _shellEnv = require('shell-env');

var _shellEnv2 = _interopRequireDefault(_shellEnv);

var _Rx = require('rxjs/Rx');

var _Rx2 = _interopRequireDefault(_Rx);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const env$ = _Rx2.default.Observable.fromPromise((0, _shellEnv2.default)()).first().do(env => {
  Object.assign(process.env, env);
}).publishReplay(1);

env$.connect();

exports.default = env$;