Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Set environment variables to detect we're inside a Coder workspace #2340

Closed
Labels
apiArea: HTTP APIcliArea: CLI
@mafredri

Description

@mafredri

As a user, I want my generic dotfiles to behave a specific way in Coder workspaces

I'm proposing we set the following environment variables inside workspaces:

CODER_WORKSPACE_NAME=maf/workCODER_WORKSPACE_TEMPLATE=dockerCODER_WORKSPACE=true

I think theCODER_WORKSPACE_TEMPLATE is optional/nice-to-have for extra customization based on env, but the other two seem kind of like standard practice.

Example from Codespaces:

CODESPACE_NAME=mafredri-myrepo-a3rj5r302v9CODESPACES=true

This can be done even today by detectingCODER_AGENT_* variables, but I consider this "internal logic" that the user can't rely on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP APIcliArea: CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp