diff --git a/home/dotfiles/profile b/home/dotfiles/profile index 77e0402..ef0e45a 100644 --- a/home/dotfiles/profile +++ b/home/dotfiles/profile @@ -136,8 +136,15 @@ section_end # composer section "composer" if [ $PROFILE_COMPOSER -gt 0 ]; then - PATH="$PATH:$(composer config --global --absolute bin-dir)" - export PATH + composer_path="$(composer global config --global --absolute bin-dir -q)" + if [ -n "$composer_path" ] + then + log "Detected composer bin path: $composer_path" + PATH="$PATH:$composer_path" + export PATH + else + log "No composer bin path detected." + fi fi section_end