打开iTerm-zsh或Terminal后出现错误 [英] Error after open iTerm-zsh or Terminal

查看:85
本文介绍了打开iTerm-zsh或Terminal后出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定我昨晚在iTerm-zsh上设置了什么.

I am not sure what I've set on my iTerm-zsh last night.

但是当我在Mac上打开iTerm(zsh)或Terminal或尝试使用zsh之后,它将始终显示以下内容:

But after I open iTerm (zsh) or Terminal on my Mac or I try to use zsh, it will always show the following:

/Users/Simon/google-cloud-sdk/path.bash.inc:3: = not found`    
/Users/Simon/google-cloud-sdk/completion.bash.inc:18: command not found: complete
/Users/Simon/google-cloud-sdk/completion.bash.inc:29: parse error near `]]'

有什么我可以解决的想法吗?预先感谢.

Any ideas that I can fix this ? Thanks in advance.

推荐答案

重置我的zsh配置,删除.zshrc的所有实例和任何.zshrc.交换文件解决了问题:)

Reset my zsh configuration, remove all instances of .zshrc and any .zshrc.??? swap files solve the problem :)

重置命令-> rm -f〜/.zshrc *

然后关闭我的终端会话并重新打开,然后出现新用户"屏幕.

Then close my terminal session and re-open, and I get the "new user" screen.

这篇关于打开iTerm-zsh或Terminal后出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆