brew autocomplete not working #11934
-
Hey, I just made a fresh install, added the brew plugin and restarted my terminal. However there is no completion for To sum it up: using a fresh install and adding the brew plugin there is no autocomplete except if I run compinit manually. Is this a bug or am I missing something? EDIT: Okay, I forgot to run the command after installing brew that put the "eval .../brew shellenv" in the .zprofile. Now the autocomplete works if I keep the FPATH changes inside my .zshrc, as said in the brew shell completion docs. However, wasn't it supposed to do that by default when the brew plugin is enabled? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Adding autoload -Uz _brew
compdef _brew brew should do the trick. Another option is to move the FPATH entry addition before sourcing |
Beta Was this translation helpful? Give feedback.
Adding
should do the trick.
Another option is to move the FPATH entry addition before sourcing
oh-my-zsh.sh
.