From 75cc910b8e98fe0584aa4fdb502a681b00b9ffee Mon Sep 17 00:00:00 2001 From: Andrew Berry Date: Wed, 28 Oct 2015 10:26:32 -0400 Subject: [PATCH] Add a helper to put vendor/bin in $PATH --- README.md | 4 ++++ shell.sh | 5 +++++ 2 files changed, 9 insertions(+) create mode 100755 shell.sh diff --git a/README.md b/README.md index 9dd55b9d60..8b508e7af2 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/shell.sh b/shell.sh new file mode 100755 index 0000000000..96a207eb96 --- /dev/null +++ b/shell.sh @@ -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