Skip to content

env

This plugin is always enabled.

This plugin adds argument parsing for the env binary. Configuration:

boolean: ["debug", "ignore-environment"]
string: ["chdir"]
alias: {"chdir": ["C"], "debug": ["v"], "ignore-environment": ["i"]}
stopEarly: true
fromArgs: (parsed, args) => {
const command = spawningArgs(parsed, args);
if (parsed.chdir) return [];
const index = command.findIndex(arg => !isAssignmentOrSubstitution(arg));
if (index === -1) return [];
const assignments = command.slice(0, index).filter(arg => !arg.startsWith('$('));
return [...assignments.map(toShellAssignment), ...command.slice(index)];
}

The configuration was generated from source code. Also see Script Parser.

This page was generated from the env plugin source code.

ISC License © 2026Lars Kappert