andras-simonyi/citeproc-el@9f783967c1 -> andras-simonyi/citeproc-el@ba49516265 bdarcus/citar@b24b5b94b7 -> bdarcus/citar@79512aefdf cjohansson/emacs-ssh-deploy@7c5fe8af2d -> cjohansson/emacs-ssh-deploy@9311f9b4f8 editorconfig/editorconfig-emacs@2ab86dc9a8 -> editorconfig/editorconfig-emacs@3c03cef311 emacs-lsp/lsp-mode@f49ea4e365 -> emacs-lsp/lsp-mode@cb7ec94435 joaotavora/eglot@dade5a1487 -> joaotavora/eglot@0f352213fc k1LoW/emacs-ansible@40af0d2bbb -> k1LoW/emacs-ansible@d89ac0ee57 magit/forge@0ff9b8a0de -> magit/forge@5586863f98 magit/magit@0ac05f3962 -> magit/magit@4e29d5827c paradoxxxzero/jinja2-mode@ecd19a40b7 -> paradoxxxzero/jinja2-mode@03e5430a7e purcell/envrc@456c4100de -> purcell/envrc@e161624b91 tmalsburg/helm-bibtex@aa775340ba -> tmalsburg/helm-bibtex@db73156576 tmalsburg/helm-bibtex@aa775340ba -> tmalsburg/helm-bibtex@db73156576 tumashu/posframe@6c0e63d6b3 -> tumashu/posframe@c91d4d53fa vedang/pdf-tools@4e6c778194 -> vedang/pdf-tools@72ef774320 zx2c4/password-store@04cd3023f4 -> zx2c4/password-store@eea24967a0
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;