-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS 10.15 shell completion documentation seems wrong #6590
Comments
Please try running these commands:
|
Yep, this enabled completion. But it needs to be done on each login, so I added them to my |
After:
|
It's expected that you'll need to enable ZSH completion for this to work. |
Note that I reported this as a documentation bug for https://docs.brew.sh/Shell-Completion. You say it's expected to have those commands in .zshrc, but the documentation doesn't mention that. |
Ping? |
@realnc I'd like to see more than one person experience this problem before I consider this a bug with the documentation. |
Add this to your if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi The In some cases you have to force a rebuild with: rm -f ~/.zcompdump; compinit Tested on macOS Catalina 10.15.1 |
For anyone watching: should be resolved in #7065. |
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?I installed macOS 10.15 ("Catalina") cleanly from install media on an empty HD, not as an upgrade to an existing macOS installation. I installed XCode 11.1 and did
xcode-select --install
. After that, I installed homebrew with the command shown at https://brew.sh.Then I followed the instructions at https://docs.brew.sh/Shell-Completion to enable shell completion. I created
~/.zshrc
and added this to it:Logged out and in again, but completion isn't working. I ran this command as suggested in the guide:
But all this does is print an error message:
Again, this is a clean install of 10.15. Nothing tweaked, and nothing installed other than Xcode.
Output of
brew config
:Output of
brew doctor
:The text was updated successfully, but these errors were encountered: