0

Whenever I open my terminal on my mac I get this message, -bash: /usr/local/bin: is a directory
How do I remove this? As I find it annoying and unneeded.

4

1 回答 1

0

在您的或您的中可能有一行试图执行/usr/local/bin(这是一个目录而不是可执行文件)~/.bash_profile~/.bashrc

如果您想查看这些文件的内容(如上所述),您可以在打开终端后输入:

cat ~/.bash_profile

cat ~/.bashrc

您可以尝试/usr/local/bin通过键入以下命令来验证提到的行:

cat ~/.bash_profile | grep "/usr/local/bin"

cat ~/.bashrc | grep "/usr/local/bin"

于 2013-01-16T06:56:15.553 回答