From 564c20ed6db5e81eb0fb042aab0dc73ce8f4aba2 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Thu, 7 Jun 2018 07:27:08 -0700 Subject: [PATCH] Fixes #29: Provide clearer instructions on how to set the PATH --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f8dcba..d0ad6b0 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,12 @@ Because the cgr script has no dependencies of its own, it is safe to install via `composer global require consolidation/cgr` -If you have not already done so, you will also need to add `~/.composer/vendor/bin` to your $PATH. Thereafter, you may subsitute `cgr` for any commandline tool whose installation instructions recommends the use of Composer `global require`. +If you have not already done so, you will also need to add the `vendor/bin` from the Composer home directory to your $PATH. Thereafter, you may subsitute `cgr` for any commandline tool whose installation instructions recommends the use of Composer `global require`. + +To add the correct bin directory to your PATH: +``` +PATH="$(composer config home)/vendor/bin:$PATH" +``` Example: