Varz - a small CLI for managing env vars without shell restarts
⚓ Rust 📅 2026-03-29 👤 surdeus 👁️ 9Hey, I've built my first public mini-project - varz - a convenience CLI for env var management.
Found myself constantly verifying if I have certain env vars set and if yes, their values (I'm looking at you, AWS). My another case is frequent 'export =' and/or .zshrc changes with the corresponding need to source or restart the terminal.
None of that is a big deal, of course, and I'm already accustomed to doing printenv | rg {FOO}, or terminal shortcuts, but just decided to play with the idea and explore what else is possible + hands where itching for some Rust.
For example, I've added persistence between sessions, without the need to update .zshrc/.zshenv, also integrated with the shell to avoid restarts.
Repo: https://github.com/oharlem/varz
Crate: https://crates.io/crates/varz
I'd appreciate some feedback on the overall approach, code quality, and the shell integration in particular.
Best
D
1 post - 1 participant
🏷️ Rust_feed