romkatv / powerlevel10k

A Zsh theme
MIT License
44.26k stars 2.12k forks source link

Autocomplete for brew doesn't work #2697

Closed donkrasnov closed 1 month ago

donkrasnov commented 1 month ago

I have a problem and can't solve it.

I use powerlevel10k, brew and iterm.

This is my brew config

$ brew config
HOMEBREW_VERSION: 4.3.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9fdb0d53990d3e62e25325a6f89dbb769e84a530
Last commit: 5 days ago
Core tap JSON: 31 May 16:53 UTC
Core cask tap JSON: 31 May 16:53 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 3.3.1 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/bin/ruby
CPU: 16-core 64-bit arm_palma
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.4
Rosetta 2: false

brew doctor says Your system is ready to brew.

Issue I can't use autocomplete for brew command. For example, when I input brew l and press Tab I see brew Library/. It's very strange.

I tried to do brew install zsh-autocomplete but it doesn't work for me.

Please help me. I have no idea.

donkrasnov commented 1 month ago

Oh, guys... I did it immediately after wrote my question. This is solution 🤦🏼‍♂️

https://docs.brew.sh/Shell-Completion