Hom*_*man 4 linux macos path macports
当我做
echo $PATH
Run Code Online (Sandbox Code Playgroud)
见:
/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
Run Code Online (Sandbox Code Playgroud)
我想将/ opt/local内容移动到路径的末尾,因为它导致gitk出错.(此处指定的错误相同:启动gitk错误)
我已经在.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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8754 次 |
| 最近记录: |