| Crates.io | env-hooks |
| lib.rs | env-hooks |
| version | 0.1.4 |
| created_at | 2025-10-25 07:20:38.091167+00 |
| updated_at | 2025-11-06 22:50:23.010846+00 |
| description | Shell integration for automatic environment management |
| homepage | |
| repository | https://github.com/dfrankland/envoluntary |
| max_upload_size | |
| id | 1899835 |
| size | 65,849 |
Shell integration library for building direnv-like utilities. Provides direnv core logic for shell-agnostic management of the state of environment variable exporting and unsetting across different shell types (bash, zsh, fish).
For a practical example of using env-hooks, see the direnv example.
It's a simplified implementation of direnv that demonstrates the core
functionality of this library:
.envrc files by walking up the directory hierarchyTo run the example:
cargo run --example direnv -- --help
cargo run --example direnv -- hook bash
cargo run --example direnv -- export bash
This is a great starting point for understanding how to integrate env-hooks
into your own shell-based utilities.
This library is a core component of envoluntary, an automatic Nix development environment management tool for your shell.
For more information about the broader project, see the main README.