Install CLI tools on Linux via cargo install#15
Merged
Conversation
On macOS the Brewfile already covers these; on Linux there's no brew, so bootstrap rustup and `cargo install --locked` the Rust CLIs that mirror the Brewfile (bat, broot, dog, dust, eza, fd, delta, ripgrep, tealdeer, zoxide). fzf is Go, fetched from the upstream GitHub release into ~/.local/bin. Also add `brew "dog"` to the macOS Brewfile for parity (only tool from the Linux set that wasn't already there), and generate $ZDOTDIR/fzf-completion.zsh in run_once_after_99_misc.sh so the zshrc's conditional source has something to read, regardless of how fzf got installed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The `dog` crate on crates.io is an unrelated/empty library; `cargo install dog` fails with "there is nothing to install... because it has no binaries". The DNS client lives at ogham/dog on GitHub and has a single v0.1.0 release (the project has been dormant since 2020). Drop it from the cargo install list and fetch the prebuilt release instead, matching the fzf pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run_once_before_00_init.sh.tmplnow bootstraps rustup andcargo install --lockeds the Rust CLIs that mirror the Brewfile (bat, broot, dust, eza, fd, delta, ripgrep, tealdeer, zoxide).dog(DNS client) isn't on crates.io — thedogcrate there is unrelated and has no binaries. It's fetched from ogham/dog's single v0.1.0 release zip instead.fzf(Go) is also a GitHub release.brew "dog"added to the macOS Brewfile so both platforms provide it.run_once_after_99_misc.shnow emits$ZDOTDIR/fzf-completion.zshviafzf --zshso the zshrc's conditional source has something to read regardless of how fzf got installed.Test plan
chezmoi init --apply https://github.com/chagui/dotfilessucceeds end-to-end;bat,broot,dog,dust,eza,fd,delta,rg,tldr,zoxide,fzfall resolve on PATH after apply.fzfkeybindings (ctrl-r, ctrl-t) work in a new zsh — confirmsfzf-completion.zshwas generated.brew bundlestill succeeds with the addeddogentry; no regression on the existing tools.command -vguards on fzf/dog).🤖 Generated with Claude Code