zenops 0.20.0

Declarative system configuration management for shell config and dotfiles.
#
# skim fuzzy finder (sk)
#

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

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

# skim isn't in mainline Fedora or Ubuntu repos, so we don't recommend
# a dnf/apt install path there. Arch ships `skim` in extra, so the
# pacman hint covers Arch natively; the cargo hint remains as a
# universal fallback for hosts with cargo on PATH.
[pkg.sk.install_hint.dnf]
packages = []

[pkg.sk.install_hint.apt]
packages = []

[pkg.sk.install_hint.pacman]
packages = ["skim"]

[pkg.sk.install_hint.cargo]
packages = ["skim"]

[pkg.sk.detect]
which = "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"]