{"id":13688647,"url":"https://github.com/direnv/direnv-vscode","last_synced_at":"2025-04-04T08:05:30.218Z","repository":{"id":37022221,"uuid":"432688471","full_name":"direnv/direnv-vscode","owner":"direnv","description":"unclutter your .profile","archived":false,"fork":false,"pushed_at":"2024-12-04T13:21:31.000Z","size":2794,"stargazers_count":199,"open_issues_count":34,"forks_count":13,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T07:04:26.154Z","etag":null,"topics":["direnv","environment","shell","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=mkhl.direnv","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/direnv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-28T11:05:05.000Z","updated_at":"2025-03-23T09:42:27.000Z","dependencies_parsed_at":"2023-02-19T08:00:57.169Z","dependency_job_id":"243f8297-5ead-4519-81b2-366a17fe9025","html_url":"https://github.com/direnv/direnv-vscode","commit_stats":{"total_commits":880,"total_committers":9,"mean_commits":97.77777777777777,"dds":0.4113636363636364,"last_synced_commit":"8fd4f14686b4736c67a6102a5263731a42cfc732"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direnv%2Fdirenv-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direnv%2Fdirenv-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direnv%2Fdirenv-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direnv%2Fdirenv-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/direnv","download_url":"https://codeload.github.com/direnv/direnv-vscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247141395,"owners_count":20890627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["direnv","environment","shell","vscode","vscode-extension"],"created_at":"2024-08-02T15:01:18.691Z","updated_at":"2025-04-04T08:05:30.197Z","avatar_url":"https://github.com/direnv.png","language":"TypeScript","funding_links":[],"categories":["VSCode","TypeScript"],"sub_categories":[],"readme":"# direnv\n\n[direnv] is an extension for your shell.\nIt augments existing shells with a new feature\nthat can load and unload environment variables\ndepending on the current directory.\n\nThis extension adds direnv support to Visual Studio Code\nby loading environment variables for the workspace root.\n\n[direnv]: https://direnv.net/\n\n\n## Features\n\n### Custom Environment\n\nThis extension automatically loads the custom environment\ndirenv provides for the workspace.\nIf the corresponding .envrc file is not allowed yet\nit provides the option to allow or view and then allow the file.\nWhen any files watches by direnv are modified\nthe extension automatically reloads the environment.\n\nThe custom environment is available in [integrated terminals][vscode-terminal],\nin [custom tasks of type `shell`][vscode-tasks],\nand in [environment variable substitutions (`${env:VAR}`)][vscode-env-vars]\n\n**Only allow .envrc files from sources you trust\nsince direnv executes arbitrary shell script.**\n\n[vscode-terminal]: https://code.visualstudio.com/docs/editor/integrated-terminal\n[vscode-tasks]: https://code.visualstudio.com/docs/editor/tasks#_custom-tasks\n[vscode-env-vars]: https://code.visualstudio.com/docs/editor/variables-reference#_environment-variables\n\n### Commands\n\n*\t\"direnv: Open .envrc file\"\n\topens an editor with the .envrc file for the workspace,\n\twhich means in the workspace root or any of its parent directories.\n\n*\t\"direnv: Create .envrc file\"\n\topens an editor with the .envrc file at the workspace root.\n\n*\t\"direnv: Allow this .envrc file\"\n\tallows loading a custom environment from the currently opened shell script.\n\n*\t\"direnv: Block this .envrc file\"\n\tblocks loading a custom environment from the currently opened shell script.\n\n*\t\"direnv: Reload environment\"\n\treloads the custom environment for the workspace.\n\n*\t\"direnv: Reset and reload environment\"\n\tresets the custom environment for the workspace, then reloads it.\n\n*\t\"direnv: Load .envrc file\"\n\tloads a custom environment from the specified .envrc file\n\n### Status Item\n\nThe extension displays a status icon\nthat indicates whether it is currently working or has succeeded or failed.\n\nClicking the status item will also reload the custom environment.\n\n\n## Requirements\n\nThis extension requires [direnv] to be installed.\nWe also recommend hooking direnv into your shell.\n\n\n## Known Issues\n\nCustom tasks with type `process` don't pick up on the modified environment.\nSeveral task provider extensions provide these kinds of tasks.\n\nWhen direnv *unsets* an environment variable\nthen in the terminal it will be set to empty\n(what POSIX calls null).\n[VSCode does not provide API to unset environment variables for the terminal.][vscode-evc]\nThe difference between null and unset variables is mostly academic\nbut some programs insist on treating them distinctly.\n\n[vscode-evc]: https://github.com/microsoft/vscode/issues/185200\n\ndirenv executes arbitrary shell scripts\nso this extension requires trusted workspaces.\n\n\n## Acknowledgements\n\nThe logo is copyright 2015 Peter Waller\nand was created as [the direnv logo](https://github.com/direnv/direnv-logo).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirenv%2Fdirenv-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirenv%2Fdirenv-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirenv%2Fdirenv-vscode/lists"}