当我做
echo $PATH
见:
/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql84/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/mysql/bin:/usr/X11/bin
我想将/ opt / local内容移动到路径的末尾,因为它导致gitk出错. (此处指定的错误相同:Starting gitk Error)
我已经在.bash_profile中注释掉了导出PATH行,但是我的路径仍然是如上所述的STILL.我还检查了etc / paths.d,但没有看到任何mac端口.我在.profile中注释掉了类似的导出PATH行.我的路径仍然是前面包含/ opt / local的STILL. ELSE在哪里设置?
我正在使用mac os雪豹10.6.8
解决方法
在我的系统上,MacPorts安装程序将其放入/ etc / profile.
(完整?)文件列表如下(按bash读取顺序):
/etc/profile /etc/bashrc ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc