at kaneshin

Free space for me.

git の補完ができなくなった git-completion.bash

homebrewをupgradeかけたら、gitの補完ができなくなった

$ git 
_git:.:26: no such file or directory: /usr/local/share/zsh/site-functions/git-completion.bash
(anon):6: command not found: __git_main

なので、こうする

$ ln -s /usr/local/etc/bash_completion.d/git-completion.bash /usr/local/share/zsh/site-functions/git-completion.bash

もしも、site-functionsに_gitがある場合は消したほうがいいらしい。

ref: git completion in zsh doesn't work after #16961