composer: Apply feedback from @ricpelo

This applies ricpelo's feedback at https://github.com/robbyrussell/oh-my-zsh/pull/6240#pullrequestreview-64253321
This commit is contained in:
Rob Loach 2018-04-18 11:20:52 -04:00 committed by GitHub
parent 2d7faf5516
commit 5bff5e006e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,6 @@ alias cget='curl -s https://getcomposer.org/installer | php'
if hash composer 2>/dev/null; then
export PATH=$PATH:$(composer global config bin-dir --absolute 2>/dev/null)
else
export PATH=$PATH:~/.composer/vendor/bin
export PATH=$PATH:~/.config/composer/vendor/bin
[ -d $HOME/.composer/vendor/bin ] && export PATH=$PATH:$HOME/.composer/vendor/bin
[ -d $HOME/.config/composer/vendor/bin] && export PATH=$PATH:$HOME/.config/composer/vendor/bin
fi