解决方法你可以关闭这个功能,通过以下操作Preferences > Profiles > (your profile) > Terminal, scroll down to "Shell Integration", and turn off "Show mark indicators". iterm2