DamienCassou/auth-password-store@aa7f171 -> DamienCassou/auth-password-store@468bba2 NicolasPetton/pass@a095d24 -> NicolasPetton/pass@5651da5 Silex/docker.el@3773112 -> Silex/docker.el@0ca910b charignon/github-review@db72374 -> charignon/github-review@d0c8234 editorconfig/editorconfig-emacs@d73333c -> editorconfig/editorconfig-emacs@f830b86 emacs-lsp/dap-mode@c52c1a5 -> emacs-lsp/dap-mode@5450af5 emacs-lsp/lsp-mode@62cd1b2 -> emacs-lsp/lsp-mode@3ca25e6 emacs-straight/project@f743ca2 -> emacs-straight/project@2e7afbe magit/forge@e340c2b -> magit/forge@8683b14 magit/magit@2145477 -> magit/magit@62dfe5a millejoh/emacs-ipython-notebook@917f2a0 -> millejoh/emacs-ipython-notebook@069e54c purcell/envrc@18caf51 -> purcell/envrc@a7c6ca8 rejeep/prodigy.el@6ae71f2 -> rejeep/prodigy.el@168f5ac spotify/dockerfile-mode@6a56c1c -> spotify/dockerfile-mode@58b7380 tmalsburg/helm-bibtex@1bb81d7 -> tmalsburg/helm-bibtex@94807a3 tumashu/posframe@8097276 -> tumashu/posframe@3454a4c
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;