<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oinume</author_name>
  <author_url>https://blog.hatena.ne.jp/oinume/</author_url>
  <blog_title>oinume journal</blog_title>
  <blog_url>https://oinume.hatenablog.com/</blog_url>
  <categories>
    <anon>Shell</anon>
  </categories>
  <description>.envrcファイルに dotenv と書くだけで、現在いるディレクトリの .env ファイルを読んでくれる素敵な仕様を発見した。これでdirenv使いながら.env形式しか受け付けないアプリケーションにも対応できてめでたしめでたし。 以下は具体的な例。 $ cat .env PORT=12345 ENV=local $ cat .envrc dotenv $ direnv allow direnv: loading .envrc direnv: export +ENV +PORT $ echo $ENV $PORT local 12345</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foinume.hatenablog.com%2Fentry%2Floading-dotenv-file-by-direnv&quot; title=&quot;direnvから.envをロードする - oinume journal&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-19 19:00:00</published>
  <title>direnvから.envをロードする</title>
  <type>rich</type>
  <url>https://oinume.hatenablog.com/entry/loading-dotenv-file-by-direnv</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
