Add A uv Global Tool
This setup uses uv for:
- managing Python versions from
~/.python-version - managing globally-installed tools via
uv tool install
Preconditions
uvis installed.- You verified the tool package name.
Steps
-
Edit the template:
It installs as
~/.default-uv-tools.Lines may be normal package names, package specs with extras, or git URLs such as
git+https://github.com/antoniorodr/lexy. The reconcile hook uses the normalized uv tool package key for cleanup/pruning, then reapplies any declared spec with extras, a git URL, or a version/source constraint viauv tool install --forceso an existing bare tool is not mistaken for the requested spec. -
Apply:
chezmoi apply
Hook:
Verification
uv tool list
Rollback / Undo
- Remove the tool from
home/readonly_dot_default-uv-tools.tmpl. - Re-apply:
chezmoi apply