Error content
_complete:96: bad math expression: operand expected at end of string
Cause: Zsh folder permission error
Solution:
-
- view the location of the Zsh folder
compaudit
# my path is:
/usr/local/share/zsh/site-functions
/usr/local/share/zsh
Set folder user group and its user
sudo su
chown -R user.user /usr/local/share/zsh
Set folder permissions
# root
chmod g-w -R zsh/
Restart the command window