【发布时间】:2013-08-20 13:18:25
【问题描述】:
在 .bashrc 文件的末尾,我添加了这些行来设置主目录中foo 文件夹的路径:
PATH = $PATH:/home/username/foo
export PATH;
然后我输入 bash:
source .bashrc
这些产生的错误:
bash: PATH: command not found
我正在使用 Debian Squeeze。在类似的问题here 中,建议修改/etc/login.defs。我不想像它所写的 login.defs 那样这样做:
add the rest [of your paths] in the shell startup files
如何将文件夹foo添加到.bashrc中的PATH?
【问题讨论】: