zenops 0.2.2

Declarative system configuration management for shell config and dotfiles.
Documentation
[pkg.cargo]
enable = "detect"
description = "Rust toolchain (cargo) — loads ~/.cargo/env into the shell."

[pkg.cargo.install_hint.brew]
packages = ["rustup-init"]

[[pkg.cargo.detect]]
type = "file"
path = "~/.cargo/env"

[[pkg.cargo.shell.env_init.bash]]
type = "comment"
text = "Rust/Cargo environment"

[[pkg.cargo.shell.env_init.bash]]
type = "source"
path = "~/.cargo/env"

[[pkg.cargo.shell.env_init.zsh]]
type = "comment"
text = "Rust/Cargo environment"

[[pkg.cargo.shell.env_init.zsh]]
type = "source"
path = "~/.cargo/env"

[pkg.sk]
enable = "detect"
description = "skim (sk) — fuzzy finder used by interactive shell keybindings."

[pkg.sk.install_hint.brew]
packages = ["sk"]

[[pkg.sk.detect]]
type = "file"
path = "~/.cargo/bin/sk"

[[pkg.sk.detect]]
type = "file"
path = "/opt/homebrew/bin/sk"

[[pkg.sk.detect]]
type = "file"
path = "/usr/local/bin/sk"

[[pkg.sk.detect]]
type = "which"
binary = "sk"

[[pkg.sk.shell.interactive_init.bash]]
type = "comment"
text = "Setup sk (fuzzy find)"

[[pkg.sk.shell.interactive_init.bash]]
type = "export"
optional = true
name = "SKIM_DEFAULT_COMMAND"
value = "${skim_default_command}"

[[pkg.sk.shell.interactive_init.bash]]
type = "source_output"
command = ["sk", "--shell", "bash"]

[[pkg.sk.shell.interactive_init.bash]]
type = "source_output"
command = ["sk", "--shell", "bash", "--shell-bindings"]

[[pkg.sk.shell.interactive_init.zsh]]
type = "comment"
text = "Setup sk (fuzzy find)"

[[pkg.sk.shell.interactive_init.zsh]]
type = "export"
optional = true
name = "SKIM_DEFAULT_COMMAND"
value = "${skim_default_command}"

[[pkg.sk.shell.interactive_init.zsh]]
type = "source_output"
command = ["sk", "--shell", "zsh"]

[[pkg.sk.shell.interactive_init.zsh]]
type = "source_output"
command = ["sk", "--shell", "zsh", "--shell-bindings"]

[pkg.starship]
enable = "detect"
description = "starship — cross-shell prompt."

[pkg.starship.install_hint.brew]
packages = ["starship"]

[[pkg.starship.detect]]
type = "file"
path = "~/.cargo/bin/starship"

[[pkg.starship.detect]]
type = "which"
binary = "starship"

[[pkg.starship.shell.interactive_init.bash]]
type = "comment"
text = "Setup starship (fancy prompt)"

[[pkg.starship.shell.interactive_init.bash]]
type = "eval_output"
command = ["starship", "init", "bash"]

[[pkg.starship.shell.interactive_init.zsh]]
type = "comment"
text = "Setup starship (fancy prompt)"

[[pkg.starship.shell.interactive_init.zsh]]
type = "eval_output"
command = ["starship", "init", "zsh"]

[pkg.zenops]
enable = "on"
description = "zenops itself — shell completions for the zenops CLI."

[pkg.zenops.install_hint.brew]
packages = []

[[pkg.zenops.shell.interactive_init.bash]]
type = "comment"
text = "zenops shell completions"

[[pkg.zenops.shell.interactive_init.bash]]
type = "source_output"
command = ["zenops", "completions", "bash"]

[[pkg.zenops.shell.interactive_init.zsh]]
type = "comment"
text = "zenops shell completions"

[[pkg.zenops.shell.interactive_init.zsh]]
type = "source_output"
command = ["zenops", "completions", "zsh"]