The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

SYNOPSIS

    mg env [ --path[=dir][, ...] ] [ --[no-]absolute ]
    eval $(mg env)

DESCRIPTION

Outputs a bash-compatible script that sets environment variables, specifically PERL5LIB.

OPTIONS

--absolute
--no-absolute

Output absolute directories, which is the default. The alternative is relative to the mg root.

--path

Also output PATH. By default, directories bin and script are considered to contain things that make sense to PATH. Use "--path-dir" to change it.

--path-dir=dir

Add values to the paths considered for PATH.

    mg env --path --path-dir=scripts
--reset
--no-reset

By default, affected environment variables will be reset to what they were before you ran mg env, allowing you to recreate them or switch context without having to manually fix your PERL5LIB or PATH. With no-reset, existing variables are maintained and appended to.

--reset-only
--no-reset-only

Exit after resetting environment variables, instead of outputting the fresh ones.