>_ZSH-XCODE-COMPLETIONS
Xcode command-line tools, completed. Zsh completions for the Xcode command-line tools, with xcrun-shim binaries to work around xcrun's nested-command completion limitation.
Install
# Homebrew (recommended)
brew install keith/formulae/zsh-xcode-completions
# Zinit
zinit ice lucid nocompile
zinit load MenkeTechnologies/zsh-xcode-completions
# Oh My Zsh
git clone https://github.com/MenkeTechnologies/zsh-xcode-completions \
"$HOME/.oh-my-zsh/custom/plugins/zsh-xcode-completions"
# then: plugins+=(zsh-xcode-completions)
# Manual
git clone https://github.com/MenkeTechnologies/zsh-xcode-completions
# source the plugin file or copy _* files onto your fpath
The Homebrew formula installs the shim binaries to PATH. If you don't want shims, install with --without-shims.
Covered binaries
xcodebuild | build / archive / test / install |
xcrun | locate / run developer tools (with shims for nested completion) |
xcode-select | switch active developer directory |
genstrings | extract .strings from source |
nm / strings | symbol / string inspection |
plutil | property-list utility |
swift | Swift compiler / REPL / package manager |
swift-demangle | demangle Swift symbols |
Examples
xcodebuild -scheme <TAB> # scheme completion xcodebuild -destination <TAB> # destination platform completion xcrun <TAB> # tool name completion swift package <TAB> # swift package subcommand completion plutil -convert <TAB> # format completion
Sibling plugins
Part of the MenkeTechnologies zsh plugin family — the MenkeTechnologiesMeta umbrella:
- zsh-better-npm-completion — cache-aware
npm installcompletion - zsh-cargo-completion — live
cargo add/cargo installcompletion - zsh-cpan-completion — live MetaCPAN
cpan/cpanmcompletion - zsh-dotnet-completion — dotnet CLI completion
- zsh-expand — spacebar expansion (11,683 tests)
- zsh-gem-completion — ruby
gem installremote completion - zsh-git-acp — 159 git aliases + add/commit/push keybindings
- zsh-git-repo-cache — index every git repo on disk
- zsh-learn — MySQL-backed learning collection / quiz
- zsh-more-completions — 33,175-file mega completion corpus
- zsh-nginx — nginx commands + service-wrapper aliases
- zsh-pip-description-completion — pip remote completion with descriptions
- zsh-sed-sub — in-place sed substitution on the command line
- zsh-sudo — ESC ESC to prepend sudo