解决zsh下报错:function definition file not found

今天用homebrew安装了mpv

>>> brew install mpv --cask

成功后发现输入mpv后再用tab键就会报错

(eval):1: _mpv: function definition file not found

解决办法就是:

>>> rm ~/.zcompdump
>>> exec zsh -l

参考:
https://sibunglon.com/2020/05/24/solve-zsh-function-definition-file-not-found/

你可能感兴趣的:(工具,zsh,macos)