mac iterm2 报错“iterm2_precmd:type:50”解决

昨天升级brew后,电脑的终端打开一直报错。

 

后来分析问题定位,之前用zsh的时候在 ~./bash_profile文件中加了包含shell_integration.bash的功能,如下图。

 

在包含shell_integration.bash行前加注释# 注释掉此行代码。source ~./bash_profile 后重启终端好了。

或者去官网更新下shell_integration.bash文件。这个办法没试。

posted @ 2021-07-19 19:10  阿飞afei  阅读(123)  评论(0编辑  收藏  举报