【发布时间】:2014-09-24 22:49:19
【问题描述】:
这是我的 .bash_profile 的内容
PS1=">>"
alias ls='ls -G'
export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad
#set SCALA_HOME variable.
export SCALA_HOME=/usr/local/bin/scala
# Added by Canopy installer on 2014-09-22
# 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/muralidharn/canopy/bin/activate
#add ipython path to actual PATH variable.
export PATH=$PATH:/Users/muralidharn/canopy/bin
#set JAVA_HOME , this is the way mac recommends that we do it.
#export JAVA_HOME=$(/usr/libexec/java_home)
#add maven to path
export PATH=$PATH:/Users/muralidharn/apache-maven-3.2.3/bin
export PATH=$PATH:/mynewpath
# Added by Canopy installer on 2014-09-22
# 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/muralidharn/Library/Enthought/Canopy_64bit/User/bin/activate
我的 PATH 变量没有使用我正在导出的任何路径进行更新。有人可以告诉我我做错了什么,因为我有一种我没有看到的非常愚蠢的感觉。我尝试重新启动终端,重新启动我的计算机,源 .bash_profile 等......已经。
提前感谢您的帮助。
【问题讨论】:
-
你也有
~/.profile吗?只需将set -x添加到~/.bash_profile和/或~/.profile的开头,然后打开一个新的terminal.app 窗口-您将看到事情发生了什么变化以及如何变化..(ofc,之后删除set -x) .