2014-05-05 137 views
0

如果我输入我的MacBook的终端上echo $PATH的文件,这是输出:

/Users/lkloh/Library/Enthought/Canopy_64bit/User/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/lkloh/.rvm/gems/[email protected]/bin:/Users/lkloh/.rvm/gems/[email protected]/bin:/Users/lkloh/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/lkloh/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/lkloh/Library/Python/2.7/lib/python/site-packages/pysmo-aimbat-0.1.2/scripts:/usr/local/git/bin:/usr/texbin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin 

但是,如果我这样做vi .bash_profile,这是我弄的,我无法删除我在路径中看到的额外链接。

# Added by Canopy installer on 2014-05-04 
# VIRTUAL_ENV_DISABLE_PROMPT can be set to '' to make bashprompt show that Canopy is  active, otherwise 1 
VIRTUAL_ENV_DISABLE_PROMPT=1 source  /Users/lkloh/Library/Enthought/Canopy_64bit/User/bin/activate 

我做了vi .profile,它不存在。我也做过.bash_rc,它不存在。我怎样才能找到我在我的$ PATH变量中看到的sym链接的文件?我想删除其中的一些。

+0

检查'/ etc/profile'。 – Ryan

+0

您可以直接在'.bash_profile'中删除对PATH的编辑。如果符号链接是在自制程序中创建的,则可以始终取消链接该项目。我将开始编辑你的PATH。 – Sillson

+0

我想编辑我的路径,但是当我检查我的'.bash_profile'时,那些路径似乎不在那里。我还能在哪里看? – ndb

回答