zenops 0.20.0

Declarative system configuration management for shell config and dotfiles.
# Homebrew itself isn't installable via the system package manager on
# either Fedora or Ubuntu. Users who want brew on Linux should follow
# brew.sh's installer; once brew is on PATH the pkg's `detect` matches
# and shell init fires. No `install_hint` block — there's nothing
# zenops can suggest to install brew, and brew can't install itself.

[pkg.brew-linux]
enable = "detect"
name = "brew"
when = "linux"
description = "Homebrew shellenv initialization (Linux convention: interactive shells)."

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

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

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

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

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