krzysztof-magosa/company-ansible@8d1ffbc -> krzysztof-magosa/company-ansible@79dd421 realgud/realgud@2cca776 -> realgud/realgud@94f2835 emacs-lsp/dap-mode@d10e254 -> emacs-lsp/dap-mode@e2086fc wbolster/emacs-direnv@1f93e3f -> wbolster/emacs-direnv@1daf479 Silex/docker.el@baba7f7 -> Silex/docker.el@a2092b3 editorconfig/editorconfig-emacs@5c67d22 -> editorconfig/editorconfig-emacs@19de0ec millejoh/emacs-ipython-notebook@b265205 -> millejoh/emacs-ipython-notebook@57e84c6 syohex/emacs-quickrun@55bbe5d -> syohex/emacs-quickrun@50e07e7 jacktasia/dumb-jump@b5185e3 -> jacktasia/dumb-jump@e8e9b0c magit/magit@55c5c7c -> magit/magit@68b5a13 magit/forge@c2fbce6 -> magit/forge@2e2d26c alphapapa/magit-todos@ad5663a -> alphapapa/magit-todos@a0e5d1f charignon/github-review@3fb7cc2 -> charignon/github-review@50c6bcc syohex/emacs-terraform-mode@6973d1a -> syohex/emacs-terraform-mode@2967e7b
tools/direnv
Description
This module integrates direnv into Emacs.
direnv is an environment switcher for the shell. It knows how to hook into bash, zsh, tcsh, fish shell and elvish to load or unload environment variables depending on the current directory. This allows project-specific environment variables without cluttering the ~/.profile file.
Before each prompt, direnv checks for the existence of a ".envrc" 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.
Module Flags
This module provides no flags.
Plugins
Hacks
- Normally, the direnv environment is updated on
post-command-hook
. We've changed it to update ondoom-switch-buffer-hook
,doom-switch-window-hook
anddoom-switch-frame-hook
instead. - Special direnv keywords/commands are highlighted in direnv-envrc-mode.
- A fix has been applied to ensure flycheck searches for executables from within the direnv environment, if any.
Prerequisites
This module requires the direnv
utility.
MacOS
brew install direnv
Arch Linux
sudo pacman -S direnv
NixOS
environment.systemPackages = [ pkgs.direnv ];
Or nix-env -i direnv
Troubleshooting
direnv + nix is slow
Consider augmenting direnv with lorri, which will cache nix builds and speed up direnv tremendously:
services.lorri.enable = true;