I just upgraded bat on my Mac with brew update && brew upgrade, then the following error showed up when I want to complete the file name "Table.txt" using Tab.
xxx@MBP: ~$bat Ta
(eval):1: _bat: function definition file not found
(eval):1: _bat: function definition file not found
(eval):1: _bat: function definition file not found
Environment:
zsh 5.7.1
When I try on bash, completion function work well, maybe it is the problem about the variables named FPATH and fpath.
After running rm ~/.zcompdump* and restarting the terminal, the completion work well now.
Is there a simple explanation for why this happens?
Is there a simple explanation for why this happens?
Older versions of rust shipped a "broken" bash completion file which needs to be removed from the cache.
After running
rm ~/.zcompdump*and restarting the terminal, the completion work well now.
I tried this and it didn't work. Is there another solution? :( I'm running bat 0.11.0 and macOS 10.14.6
@mcjlnrtwcz Could you please try updating to the latest version of bat (and repeat the steps above)?
Most helpful comment
After running
rm ~/.zcompdump*and restarting the terminal, the completion work well now.