{"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhfuji.hatenablog.jp%2Fentry%2F2019%2F01%2F09%2F102212\" title=\".env\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u74b0\u5883\u5909\u6570\u3092\u30bb\u30c3\u30c8\u3059\u308b alias - Fuji Haruka&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u30b7\u30a7\u30eb"],"title":".env\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u74b0\u5883\u5909\u6570\u3092\u30bb\u30c3\u30c8\u3059\u308b alias","height":"190","blog_title":"Fuji Haruka's blog","url":"https://hfuji.hatenablog.jp/entry/2019/01/09/102212","author_url":"https://blog.hatena.ne.jp/fuji_haruka/","published":"2019-01-09 10:22:12","provider_url":"https://hatena.blog","width":"100%","image_url":null,"blog_url":"https://hfuji.hatenablog.jp/","type":"rich","author_name":"fuji_haruka","version":"1.0","description":"\u3053\u308c\u3060\u3051\u306e\u3053\u3068\u306a\u3093\u3060\u3051\u3069\u3002 https://stackoverflow.com/questions/43267413/shell-how-to-set-environment-variables-from-env-file .env \u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304b\u308c\u305f\u3059\u3079\u3066\u306e\u5909\u6570\u3092\u74b0\u5883\u5909\u6570\u3068\u3057\u3066 export \u3059\u308b\u306b\u306f\u3001\u7c21\u5358\u306b\u3084\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3044\u3044\u3002\uff08\u305f\u3060\u3057\u66f8\u304d\u65b9\u304cvalid\u3067\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\uff09 set -a # automatically export all variables source .env set +a \u3088\u304f\u4f7f\u3044\u305d\u3046\u306a\u306e\u3067 alias \u306b\u767b\u9332\u3057\u3066\u304a\u304f\u3002 alias export-dote\u2026"}