4fba92e04fa9b62b2259abc45eb92ca6a74f1639

Author
Ricardo Pérez <ricpelo@gmail.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

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`.

Diff

 1diff --git a/plugins/composer/composer.plugin.zsh b/plugins/composer/composer.plugin.zsh
 2index ac272060b726e1051347c143097cbdc9790aef4a..8cf50d50263e6fe340096b644061bbd2a451d569 100644
 3--- a/plugins/composer/composer.plugin.zsh
 4+++ b/plugins/composer/composer.plugin.zsh
 5@@ -52,4 +52,4 @@ alias cgrm='composer global remove'
 6 alias cget='curl -s https://getcomposer.org/installer | php'
 7 
 8 # Add Composer's global binaries to PATH
 9-export PATH=$PATH:~/.composer/vendor/bin
10+export PATH=$PATH:$(composer global config bin-dir --absolute) 2>/dev/null