#env-var #shell-environment #variables #load #config-directory #config-parser #default-config

app degenverate

Loads environment variables from an environment.d directory

7 releases

0.2.5 Oct 12, 2024
0.2.4 Sep 2, 2024
0.2.2 Mar 4, 2024
0.2.1 Feb 4, 2024
0.1.0 Apr 29, 2023

#79 in Configuration

Download history 11/week @ 2024-07-27 305/week @ 2024-08-31 27/week @ 2024-09-07 5/week @ 2024-09-14 6/week @ 2024-09-21 1/week @ 2024-09-28 1/week @ 2024-10-05 153/week @ 2024-10-12 6/week @ 2024-10-19 14/week @ 2024-11-02

173 downloads per month

MIT license

11KB
170 lines

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:

cargo install degenverate

Development version:

cargo install --git https://codeberg.org/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 --format=export)" to your shell's initialization script (.zshenv or similar).

Dependencies

~1–12MB
~88K SLoC