direnv is an extension for your shell. It augments existing shells with a new feature that can load and unload environment variables depending on the current directory. https://direnv.net/ https://github.com/direnv/direnv
https://packages.altlinux.org/ru/sisyphus/srpms/direnv/