每次打开终端时都会根据别名“z”错误获取定义函数

每次打开终端时都会根据别名“z”错误获取定义函数

每次打开我的终端(使用 ZSH)时都会出现以下错误

(eval):10: defining function based on alias `z'
(eval):10: parse error near `()'

另外为什么每次通过终端执行任何操作后都会出现此错误

bgnotify_end:5: condition expected: 0x0 

为什么会出现这种情况以及如何解决?

答案1

任何人因错误而发现此问题:

(eval):10: defining function based on alias `z'
(eval):10: parse error near `()' 

我的解决方案是添加function我的解决方案是在函数声明中https://github.com/ohmyzsh/ohmyzsh/issues/6723#issue-313463147

答案2

检查了几件事后,终于找到了问题所在

source $ZSH/oh-my-zsh.sh

我已将其删除并重新安装。现在一切都好了。谢谢大家。

相关内容