I'm using oh-my-zsh and I get this error every time I open terminal:
WARNING: this script is deprecated, please see git-completion.zsh
is there any solution to that?
Might seems silly, but make sure that you source your ~/.zshrc
file (create one if it does not exists). On OSX I completely forgot that I had switched to zsh, and got the error you mentioned because I was doing source ~/.bashrc
brew install bash-completion
~/.zshrc
:# auto-completion
if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
. /opt/local/etc/profile.d/bash_completion.sh
fi
source ~/.zshrc
and you will be good