degenverate

A tool to load environment variables from an environment.d directory into your shell.

degenverate is inspired by the 30-systemd-environment-d-generator program included with systemd, although it is not a drop-in replacement. The [dotenvy][] crate is used for parsing environment files.

Installation

Latest release: sh cargo install degenverate

Development version: sh cargo install --git https://git.sr.ht/~arm32x/degenverate

Usage

  1. Create an environment.d directory in $XDG_CONFIG_HOME (which defaults to ~/.config). Files in this directory will be loaded in alphabetical order, regardless of extension.
  2. Add eval "$(degenverate --export)" to your shell's initialization script (.zshenv or similar).