Skip to content

p.44: Confusion about setting env vars in Windows #32

@jadient

Description

@jadient

The instructions for setting environment variables in Windows are confusing.

  1. The text says that Windows is tricky, but at the end, eventually goes on to recommend the same approach that's mentioned above for Linux and Mac (i.e., add to the end of the activate script). I recommend dropping the "is trickier" because I don't see that (if this was referring to the need to restart the command interpreter, you'd need to do the same thing if modifying .bashrc etc.).

  2. The text says there's an issue with setx but then goes on to use it anyway. Perhaps you meant to use set in the example?

  3. Using setx for secret information makes me nervous because it places the information in the registry (it looks like that's the same for the PowerShell examples). I'm wondering if it might be better to omit all mention of how to store secret information persistently. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions