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 a helper to put vendor/bin in $PATH #66

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ cd some-dir
composer require drupal/devel:8.*
```

If you are adding command line tools like Drush through composer, you can add
them to your shell's path by running `shell.sh` in the project's root
directory.

## What does the template do?

When installing the given `composer.json` some tasks are taken care of:
Expand Down
5 changes: 5 additions & 0 deletions shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

echo "Starting a new shell at $SHELL with $(pwd)/vendor/bin added to it's path."
echo "Exit the shell to remove the path directory."
PATH=$(pwd)/vendor/bin:$PATH $SHELL