direnv
direnv 2.38.2
Shell extension that manages your environment
<rendered-html><p>Once hooked into your shell direnv is looking for an .envrc file in your current directory before every prompt.</p> <p>If found it will load the exported environment variables from that bash script into your current environment, and unload them if the .envrc is not reachable from the current path anymore.</p> <p>In short, this little tool allows you to have project-specific environment variables.</p> </rendered-html>
https://direnv.netMIT License
main program: direnvprograms: direnv
Maintainers
Platforms (30)
sh4-linuxriscv32-linuxaarch64-freebsdpowerpc64le-linuxmips64-linuxmips-linuxmips64el-linuxarc-linux
Install
Copy into your configuration
NixOS (configuration.nix)
environment.systemPackages = with pkgs; [ direnv ];
Ad-hoc shell
nix-shell -p direnv
Flake (nix run)
nix run nixpkgs#direnv