envpkt shell-hook
Generate a shell function that runs envpkt audit --format minimal on every directory change. Config discovery is handled by envpkt itself — it searches CWD, ~/.envpkt/, cloud storage paths, and any custom ENVPKT_SEARCH_PATH locations.
envpkt shell-hook <shell>Argument: Shell type — zsh or bash
Add to your shell configuration file:
# For zsh (~/.zshrc)eval "$(envpkt shell-hook zsh)"
# For bash (~/.bashrc)eval "$(envpkt shell-hook bash)"Behavior
Section titled “Behavior”After setup, every cd triggers a minimal audit display showing credential health at a glance. envpkt handles config discovery internally — if no config is found anywhere in the resolution chain, it silently exits. This provides ambient awareness without requiring manual audit runs.
See the Shell Hooks integration for details.