Last login: Wed Jun 12 15:15:00 on ttys000
-bash: Downloading: command not found
-bash: Upgrading: command not found
-bash: RVM: command not found
-bash: RVM: command not found
-bash: Upgrade: command not found
-bash: Upgrade: command not found
-bash: Downloading: command not found
-bash: Upgrading: command not found
-bash: RVM: command not found
-bash: RVM: command not found
-bash: Upgrade: command not found
-bash: Upgrade: command not found
iMac-de-Media:~ medialab$
答案1
您的 .bash_profile 或 .bashrc 文件中似乎包含无效信息。这些文件需要采用 bash 脚本格式。官方文档在此处:GNU.org Bash 启动文件。
您可以使用此命令或类似命令进行测试:
source ~/.bash_profile
或者
source ~/.bashrc
这将允许您精确地定位存在错误/无效文本的特定文件。