| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
- old snippet only worked with zsh's built-in _git, which homebrew git's wrapper shadows; new compdef works with both - drop nonexistent brew zsh functions path and the autoload trick that errors at startup
|
this works well for me on mac, with homebrew, but zsh is the system zsh not homebrew zsh |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
the zsh snippet in the README only works with zsh's built-in git completion — but Homebrew's git ships its own _git wrapper that shadows the built-in and never defines __git_branch_names, so branch <tab> fails for anyone with brew git.
also, $(brew --prefix)/share/zsh/functions doesn't exist unless zsh itself came from brew, and autoload -Uz _git && _git errors at shell startup.
so:
to test: add the new snippet to your .zshrc after compinit, rm -f ~/.zcompdump*; exec zsh, then branch <tab> in any repo