Skip to content

envpkt shell-hook

Generate a shell function that runs envpkt audit --format minimal whenever you cd into a directory containing envpkt.toml.

Terminal window
envpkt shell-hook <shell>

Argument: Shell type — zsh or bash

Add to your shell configuration file:

Terminal window
# For zsh (~/.zshrc)
eval "$(envpkt shell-hook zsh)"
# For bash (~/.bashrc)
eval "$(envpkt shell-hook bash)"

After setup, every cd into a directory containing envpkt.toml triggers a minimal audit display showing credential health at a glance. This provides ambient awareness without requiring manual audit runs.

See the Shell Hooks integration for details.