Docker (buildx and credential helpers)
Summary
Section titled “Summary”Installs Docker CLI extensions: buildx (extended BuildKit builds with completions) and docker-credential-helpers (platform keystore credential storage) from GitHub releases.
Syntax / Usage
Section titled “Syntax / Usage”buildx
Section titled “buildx”zi for \ as'completions' \ atclone'buildx* completion zsh > _buildx' \ from"gh-r" \ sbin'!buildx-* -> buildx' \ @docker/buildx \credential helpers
Section titled “credential helpers”zi for \ from"gh-r" \ sbin'!* -> docker-credential-desktop' \ @docker/docker-credential-helpersDetails
Section titled “Details”buildx
Section titled “buildx”from'gh-r'— downloads the release binary from GitHub Releases.as'completions'— marks this as a completions-only plugin.atclone'buildx* completion zsh > _buildx'— generates the_buildxZsh completion file after download.sbin'!buildx-* -> buildx'— creates a shim namedbuildxpointing to the versioned binary (requireszinit-annex-bin-gem-node). The!flag marks it as a lazy shim.
credential helpers
Section titled “credential helpers”from'gh-r'— downloads the release binary from GitHub Releases.sbin'!* -> docker-credential-desktop'— creates a shim nameddocker-credential-desktopfor the downloaded binary.
Both recipes require the zdharma-continuum/zinit-annex-bin-gem-node annex to be loaded first.
Examples
Section titled “Examples”# prerequisite — load once at the top of .zshrczinit light-mode for zdharma-continuum/zinit-annex-bin-gem-node
# buildxzi for \ as'completions' \ atclone'buildx* completion zsh > _buildx' \ from"gh-r" \ sbin'!buildx-* -> buildx' \ @docker/buildx \
# credential helperszi for \ from"gh-r" \ sbin'!* -> docker-credential-desktop' \ @docker/docker-credential-helpers