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 |
#411 in Filesystem
457 downloads per month
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
- Create an
environment.ddirectory in$XDG_CONFIG_HOME(which defaults to~/.config). Files in this directory will be loaded in alphabetical order, regardless of extension. - Add
eval "$(degenverate --format=export)"to your shell's initialization script (.zshenvor similar).
Dependencies
~1–12MB
~91K SLoC