Heroku Toolbelt:-bash:别名:已添加:未找到

时间:2015-01-04 13:46:59

标签: macos bash heroku heroku-toolbelt

我今天注册了Heroku帐户,并在Mac上安装了Toolbelt(OSX 10.10.1)。

当我打开终端时,我明白了:

Last login: Sun Jan  4 21:50:53 on ttys000
-bash: alias: Added: not found
-bash: alias: by: not found
-bash: alias: the: not found
-bash: alias: Heroku: not found
-bash: alias: Toolbelt: not found
Zulhilmis-MBP:~ zulhilmizainudin$ 

这是我的.bash_profile

export PATH=/usr/local/git/bin/:$PATH

export PATH=/Applications/android_sdk/tools:$PATH

export ANDROID="/Applications/android_sdk/tools"

export JAVA_HOME=$(/usr/libexec/java_home)

export PATH=/Applications/MAMP/bin/php/php5.6.2/bin:$PATH

alias php='/Applications/MAMP/bin/php/php5.6.2/bin/php'### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"

我的问题:

  1. 如何解决终端内的not found错误?
  2. 我的.bash_profile是否正确?最近,我在该文件中添加了许多新行,我根本不知道这个.bash_profile的事情。当我遇到问题时,我只是从网上复制粘贴。如果看起来不对,请您为此.bash_profile建议更正?

1 个答案:

答案 0 :(得分:2)

更改行:

alias php='/Applications/MAMP/bin/php/php5.6.2/bin/php'### Added by the Heroku Toolbelt

为:

alias php="/Applications/MAMP/bin/php/php5.6.2/bin/php"
### Added by the Heroku Toolbelt

您的.bash_profile看起来不错。您可以做的唯一改进是将所有路径线合并为一个,但实际上并不重要。