DamienCassou/auth-password-store@468bba2 -> DamienCassou/auth-password-store@fa8b964 Silex/docker.el@ed0cdf0 -> Silex/docker.el@bc2dc09 cjohansson/emacs-ssh-deploy@cc91b56 -> cjohansson/emacs-ssh-deploy@fce4ea3 editorconfig/editorconfig-emacs@9da2dab -> editorconfig/editorconfig-emacs@e10fa22 emacs-lsp/dap-mode@49af1b8 -> emacs-lsp/dap-mode@4347846 emacs-lsp/lsp-ivy@4dcb635 -> emacs-lsp/lsp-ivy@bccd860 emacs-lsp/lsp-mode@3dc87f6 -> emacs-lsp/lsp-mode@aec8968 emacs-lsp/lsp-ui@efae00e -> emacs-lsp/lsp-ui@cb02972 emacsorphanage/quickrun@57db985 -> emacsorphanage/quickrun@35e91f4 jacktasia/dumb-jump@8bc1950 -> jacktasia/dumb-jump@8f70acb joaotavora/eglot@b06589b -> joaotavora/eglot@a5b7b7d magit/forge@f4c95dd -> magit/forge@37aa4e4 magit/magit@577f16d -> magit/magit@e378827 millejoh/emacs-ipython-notebook@142ff50 -> millejoh/emacs-ipython-notebook@09af858 purcell/envrc@110a221 -> purcell/envrc@8a9a142 realgud/realgud@34557f8 -> realgud/realgud@7a70b27 spotify/dockerfile-mode@3b13745 -> spotify/dockerfile-mode@ad06a41 tkf/emacs-request@accd430 -> tkf/emacs-request@f3a5b43 tmalsburg/helm-bibtex@ca09076 -> tmalsburg/helm-bibtex@9f6ea92 vedang/pdf-tools@35e12b0 -> vedang/pdf-tools@d262cf9 yoshiki/yaml-mode@fc5e1c5 -> yoshiki/yaml-mode@3a57058 zx2c4/password-store@918992c -> zx2c4/password-store@4e73cdc
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
direnv
is available on the AUR
yay -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;