From 5bff5e006e3f0963e2fd4cab6e67b0fc65dc965f Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Wed, 18 Apr 2018 11:20:52 -0400 Subject: [PATCH] composer: Apply feedback from @ricpelo This applies ricpelo's feedback at https://github.com/robbyrussell/oh-my-zsh/pull/6240#pullrequestreview-64253321 --- plugins/composer/composer.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/composer/composer.plugin.zsh b/plugins/composer/composer.plugin.zsh index d029c392..083a9fbc 100644 --- a/plugins/composer/composer.plugin.zsh +++ b/plugins/composer/composer.plugin.zsh @@ -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