终端 mac - bash 命令未找到,权限被拒绝,提示中出现“&gt”

terminal mac - bash command not found, permission denied and '&gt' in prompt

我尝试按照本指南在终端中更改颜色: http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/

我创建了 bash_profile 文件,保存并退出终端。现在,当我打开终端时,我得到了这个:

Last login: Mon Oct 17 01:36:24 on ttys000

-bash:  : command not found

-bash:  : command not found

-bash:    git: command not found

-bash: gt: command not found

-bash: /dev/null: Permission denied

->> $ 最后一行在 Whosebug 上被更改。我不懂为什么。请看下面的照片。

我删除了bash_profile,但我仍然得到同样的结果。

我没有按照评论中的建议使用要求移动 post 的标志,因为我已经在 AskDifferent 上 post 编辑了相同的 post。

问题的答案在AskDifferent: https://apple.stackexchange.com/questions/257603/terminal-change-of-colours-guide-file-bash-profile-bash-not-found-permissi

语法错误的问题是由 copy/pasted 来源中的 HTML 标记引起的。