我使用 git
命令时遇到了问题,提示 -bash: git: command not found
。
但是当我运行 $ gem list
时,它显示已经安装,并且我已将其路径添加到了我的.profile
中,如下所示。我不明白为什么它不起作用。谢谢帮助。
# MacPorts Installer addition on 2012-10-11_at_19:01:44: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
export PATH=${PATH}:/usr/local/mysql/bin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# git path
export PATH=$PATH:/usr/local/git/bin