add php composer bin to path

This commit is contained in:
Ray Elliott 2022-01-22 16:09:20 +00:00
parent 12724a59af
commit 3694016696
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,12 @@ if command -v ruby ; then
export PATH="$ruby_path:$PATH" export PATH="$ruby_path:$PATH"
fi &> /dev/null fi &> /dev/null
export PATH="$PATH:$HOME/.local/bin:$ruby_path" if command -v php ; then
phpcs_path=$(composer global config bin-dir --absolute)
export PATH="$phpcs_path:$PATH"
fi &> /dev/null
export PATH="$PATH:$HOME/.local/bin"
# https://developers.google.com/web/tools/puppeteer/troubleshooting # https://developers.google.com/web/tools/puppeteer/troubleshooting
export CHROME_DEVEL_SANDBOX=/usr/lib/chromium/chrome-sandbox export CHROME_DEVEL_SANDBOX=/usr/lib/chromium/chrome-sandbox