SavchenkoValeriy/emacs-powerthesaurus@810a25056c -> SavchenkoValeriy/emacs-powerthesaurus@88bc5229cb Silex/docker.el@fbd896e313 -> Silex/docker.el@44f0bbec9b editorconfig/editorconfig-emacs@1d4acc3ec7 -> editorconfig/editorconfig-emacs@1f6f16c24f emacs-citar/citar@ee98b94f7f -> emacs-citar/citar@dd028c6a4d emacs-straight/rainbow-mode@949166cc01 -> emacs-straight/rainbow-mode@55a8c15782 emacsorphanage/quickrun@c680f5137c -> emacsorphanage/quickrun@314beae43c jacktasia/dumb-jump@dbb915441a -> jacktasia/dumb-jump@1dd583011f magit/forge@66b3993c98 -> magit/forge@36208c43bf magit/magit@a4a78d341a -> magit/magit@c1fb53d3de millejoh/emacs-ipython-notebook@e04e1e19c6 -> millejoh/emacs-ipython-notebook@7b9b14435c purcell/envrc@57d78f0138 -> purcell/envrc@7f36664fc6 rafalcieslak/emacs-company-terraform@2d11a21fee -> rafalcieslak/emacs-company-terraform@8d5a16d1bb rejeep/prodigy.el@168f5ace16 -> rejeep/prodigy.el@a3be00d3b9 tkf/emacs-request@c769cf33f2 -> tkf/emacs-request@38ed1d2e64 tmalsburg/helm-bibtex@db73156576 -> tmalsburg/helm-bibtex@ce8c17690d
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;