Skip to content

DOCS: inline environment variables. #4

@deetonn

Description

@deetonn

Inline environment variables are a powerful feature that enable you to append environment variables to your current prompt instantly.

The syntax is as follows:
{variable-name}

Examples:
cd {USERPROFILE} -- this will take you to /Users/Name on windows. Equivalent to cd ~

The environment variables used aren't platform specific, they are whatever your systems environment contains at that time.

Whatever is inside the braces will be converted into it's corresponding value for that variable. If the variable does not exist there are different behaviors depending on mode. If execution.strictmode is defined in the settings, this will be an error. If not, the name will be automatically appended to the string. (strictmode will be enabled by default).

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions