打开终端窗口时不断出错

时间:2016-10-13 01:00:20

标签: bash macos terminal

每次打开终端窗口时(我使用HyperTerm / Hyper.app但它在Mac的默认终端上执行相同的操作),我收到此错误:

': not a valid identifier
: command not found
': not a valid identifier
: command not found
: command not found
: command not found
: command not found

我认为这与我的bash个人资料有关,但我不明白,因为我无法看到其中的任何错误。

这是我的.bash_profile

# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH

# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH

#Path Java
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
#or
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

#yagarto
export PATH=$HOME/yagarto/yagarto-4.7.2/bin:$PATH
export PATH=$HOME/yagarto/yagarto-4.7.2/tools:$PATH

#GO
export PATH=/usr/local/go/bin:$PATH
export GOPATH=$HOME/Desktop/Dev/Go

#Ruby Gem
export GEM_HOME=$HOME/.gem
export GEM_PATH=$GEM_HOME

# Ruby PATH
export PATH=/usr/local/lib/ruby/gems/2.3.0/bin:$PATH
export PATH=/usr/local/opt/ruby/bin:$PATH

0 个答案:

没有答案
相关问题