Load .env files in shell-script-mode

This commit is contained in:
Jeremy Dormitzer 2021-03-09 10:26:04 -05:00
parent e4037d8c30
commit 5e067c5fbd

View File

@ -2,6 +2,8 @@
(use-package direnv
:if (executable-find "direnv")
:defer 2
:init
(add-to-list 'auto-mode-alist '("\\.env\\'" . shell-script-mode))
:config
(direnv-mode)
(add-hook 'eshell-mode-hook #'direnv-update-directory-environment)