【发布时间】:2015-03-02 04:48:27
【问题描述】:
我今天注册了 Heroku 帐户,并在我的 Mac (OSX 10.10.1) 上安装了 Toolbelt。
当我打开终端时,我得到了这个:
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"
我的问题:
- 如何修复终端内的
not found错误? - 我的
.bash_profile正确吗?最近,我在该文件中添加了许多新行,但我完全不知道.bash_profile这个东西。当我遇到问题时,我只是从网上复制粘贴。如果看起来有问题,您能否建议对此.bash_profile进行更正?
【问题讨论】:
-
一个变量只需要导出一次,即使以后发生变化。
标签: macos bash heroku heroku-toolbelt