Skip to content

Completions by brew installed packages are missing #2103

Open
@onc

Description

@onc

Description

First, thank you for this project. I was using oh-my-zsh for years and just recently switched to prezto and oh boy, it feels so good! Never going back!

While configuring my system, I noticed that completions from homebrew installed packages are not working. After some investigations, I noticed that the homebrew fpath is missing in the fpath build by prezto. In my case this would be /opt/homebrew/share/zsh/site-functions.

I can achieve my desired behavior by doing the following:

# add to the end, so the zsh-completion some first and completions 
# for e.g. git are used from there instead of from the homebrew directory
fpath+=$(brew --prefix)/share/zsh/site-functions
compinit -i -d ...

Expected behavior

The homebrew completions path should added to fpath.

Actual behavior

The path is missing in fpath.

Steps to Reproduce

  1. type brew hit <TAB>

Versions

  • Prezto commit: 427268c
  • ZSH version: zsh 5.9 (arm64-apple-darwin24.0)
  • OS information: macOS 15.12

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions