Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add '${HOME}/.composer/vendor/bin' to the $PATH environment variable in .bashrc #755

Closed
vlad4ernyshov opened this issue Nov 19, 2020 · 2 comments
Assignees

Comments

@vlad4ernyshov
Copy link

vlad4ernyshov commented Nov 19, 2020

Is it possible to add '${HOME}/.composer/vendor/bin' to the $PATH environment variable in .bashrc by default?

This will make globally available commands set by a requests like this:
php composer global require friendsofphp/php-cs-fixer

Now I solve this with a command in autorun:
su -c 'echo "PATH=${PATH}:${HOME}/.composer/vendor/bin" >> ~/.bashrc' -l devilbox

https://getcomposer.org/doc/03-cli.md#global

ISSUE TYPE

  • Feature request

SUMMARY

Goal

@cytopia
Copy link
Owner

cytopia commented Nov 21, 2020

@vlad4ernyshov good catch. Will add this here: devilbox/docker-php-fpm#181

@cytopia cytopia mentioned this issue Nov 22, 2020
@cytopia
Copy link
Owner

cytopia commented Nov 22, 2020

Fix released here: #757

@cytopia cytopia closed this as completed Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants