通过Composer安装全局Drush

时间:2016-07-11 01:19:15

标签: drupal drush

我输入vi ~/.bash_profile,但该文件不为空。我应该在哪里放export PATH="$HOME/.composer/vendor/bin:$PATH"

  

screenshot

1 个答案:

答案 0 :(得分:4)

PATH=$HOME/.composer/vendor/bin:$HOME/bin:$PATH

export PATH

我只是在一行中做到这一点(注意我有Homebrew的路径,你有$ HOME / bin):

export PATH=~/.composer/vendor/bin:/usr/local/bin:$PATH