{"id":3068,"date":"2025-08-05T20:31:48","date_gmt":"2025-08-05T20:31:48","guid":{"rendered":"https:\/\/jan.schnasse.org\/blog\/?p=3068"},"modified":"2026-09-28T11:37:10","modified_gmt":"2026-09-28T09:37:10","slug":"getting-used-to-env","status":"publish","type":"post","link":"https:\/\/jan.schnasse.org\/blog\/2025\/08\/05\/getting-used-to-env\/","title":{"rendered":"Getting used to .env?"},"content":{"rendered":"<p>Before each prompt, direnv checks for the existence of a <code>.envrc<\/code> file (and <a href=\"https:\/\/direnv.net\/man\/direnv.toml.1.html#codeloaddotenvcode\">optionally<\/a> a <code>.env<\/code> file) in the current and parent directories. If the file exists (and is authorized), it is loaded into a <strong>bash<\/strong> sub-shell and all exported variables are then captured by direnv and then made available to the current shell.<\/p>\n<p><a href=\"https:\/\/direnv.net\/\">https:\/\/direnv.net\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before each prompt, direnv checks for the existence of a .envrc file (and optionally a .env file) in the current and parent directories. If the file exists (and is authorized), it is loaded into a bash sub-shell and all exported variables are then captured by direnv and then made available to the current shell. https:\/\/direnv.net\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3068","post","type-post","status-publish","format-standard","hentry","category-bookmarks"],"_links":{"self":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/3068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/comments?post=3068"}],"version-history":[{"count":1,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/3068\/revisions"}],"predecessor-version":[{"id":3627,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/3068\/revisions\/3627"}],"wp:attachment":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/media?parent=3068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/categories?post=3068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/tags?post=3068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}