首页 > mac环境变量bin目录的合并

mac环境变量bin目录的合并

如题,在mac下能否将另外一个额外的目录合并到/usr/bin中去,但不复制文件,只是环境变量中的合并,比如..../Qt5.5.0/5.5/clang_64/bin这样的目录。


localhost:~ mac$ vim ~/.bash_profile
export PATH="/Users/mac/Qt5.4.1/5.4/clang_64/bin:${PATH}"
export PATH="/install/ant/apache-ant-1.9.4/bin:${PATH}"

修改完之后 source ~/.bash_profile使修改生效


unix环境下合并到同一目录,你指的是$PATH环境变量?还是说ln链接?

【热门文章】
【热门文章】