zenops 0.20.0

Declarative system configuration management for shell config and dotfiles.
#
# Homebrew — shellenv initialization
#
# Split by OS because the convention differs:
#   macOS zsh → .zprofile (login shells)
#   Linux zsh → .zshrc    (interactive shells)
# Bash emits the same shellenv line on both OSes; duplicated here since only
# one of the two pkgs is active on any given host (`when` gates it).
#
# No `install_hint` block — Homebrew is installed out-of-band via the
# brew.sh installer; brew can't install itself, and no system manager
# ships it.

[pkg.brew-macos]
enable = "detect"
name = "brew"
when = "macos"
description = "Homebrew shellenv initialization (macOS convention: login profile)."

[pkg.brew-macos.detect]
exists = "${brew_prefix}/bin/brew"

[[pkg.brew-macos.shell.env_init.bash]]
type = "comment"
text = "Homebrew environment (PATH, MANPATH, INFOPATH)"

[[pkg.brew-macos.shell.env_init.bash]]
type = "eval_output"
command = ["${brew_prefix}/bin/brew", "shellenv", "bash"]

[[pkg.brew-macos.shell.login_init.zsh]]
type = "comment"
text = "Homebrew environment (PATH, MANPATH, INFOPATH, fpath)"

[[pkg.brew-macos.shell.login_init.zsh]]
type = "eval_output"
command = ["${brew_prefix}/bin/brew", "shellenv", "zsh"]