userEnvironment top-level property Null safety

Map<String, String> userEnvironment

Get the user environment

It includes current system user environment.

It can be overriden to include user defined variables loaded from ~/.config/tekartik/process_run/env.yam

userEnvironment must be explicitly used as it could contain sensitive information.

Implementation

Map<String, String> get userEnvironment => ShellEnvironment.empty()
  ..vars.addAll(userConfig.vars)
  ..aliases.addAll(userConfig.aliases)
  ..paths.addAll(userConfig.paths);