Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify override for every TS dotenv call. #211

Closed
wants to merge 1 commit into from

Conversation

DanielRosenwasser
Copy link
Member

Fixes issues if (for some reason) environment variables are already specified.

@DanielRosenwasser
Copy link
Member Author

@jakebailey mentions this may not be desirable since users should be able to declare an environment variable before running the program. On the other hand, I wonder how many people do that with a different key?

@jakebailey
Copy link
Member

My shell is configured (I think a default in zsh, or maybe just oh-my-zsh?) to not store any command that starts with a space into history, so I can run command with secrets in my terminal without putting them anywhere and that's pretty useful.

PowerShell can do it to with this in profile.ps1:

Set-PSReadLineOption -AddToHistoryHandler {
    param($command)
    if ($command -like ' *') {
        return $false
    }
    return $true
} 

Of course, these are just examples. Not really sure how we are expecting them to be run.

@DanielRosenwasser
Copy link
Member Author

DanielRosenwasser commented Mar 15, 2024

Looks like I needed this because of microsoft/vscode-python#23078

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants