浏览代码

Use proper config bin directory (#5886)

Add the proper config bin directory to `PATH` instead of the previously (incorrect) fixed `~/.composer/vendor/bin`. Nowadays the right config dir is `~/.config/composer/vendor/bin`.
Ricardo Pérez 8 年之前
父节点
当前提交
4fba92e04f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/composer/composer.plugin.zsh

+ 1 - 1
plugins/composer/composer.plugin.zsh

@@ -52,4 +52,4 @@ alias cgrm='composer global remove'
 alias cget='curl -s https://getcomposer.org/installer | php'
 
 # Add Composer's global binaries to PATH
-export PATH=$PATH:~/.composer/vendor/bin
+export PATH=$PATH:$(composer global config bin-dir --absolute) 2>/dev/null