Arch Linux has upgraded zsh to version 5.3.1 recently.
A directory problem:
_systemctl_startable_units:4: failed to load module `zsh/regex': /usr/lib/zsh/5.3/zsh/regex.so: cannot open shared object file: No such file or directory
_systemctl_startable_units:4: -regex-match not available for regex
ln -s /usr/lib/zsh/5.3.1 /usr/lib/zsh/5.3
is my temporary fix.
I have this problem too, but on OSX.
Recently upgraded to 5.3.1 using brew
and this error started popping up.
zsh --version
zsh 5.3.1 (x86_64-apple-darwin15.6.0)
When trying to use the diff
command and pressing
(eval):1: _diff: function definition file not found
Problem solved on OSX by doing this:
rm -f ~/.zcompdump*
Then restarting the terminal.
For the gradle autocompletion to work again, I had to delete the .gradletasknamecache file in the respective gradle directories.
Solution found on stackoverflow, instant upvote ;)
The solution provided by bes worked for me after the upgrade to zsh 5.4.2 on archlinux.
Most helpful comment
Problem solved on OSX by doing this:
Then restarting the terminal.
For the gradle autocompletion to work again, I had to delete the .gradletasknamecache file in the respective gradle directories.
Solution found on stackoverflow, instant upvote ;)