From 11483a56bc7e0484c4a1ce16aa43dd27347f084c Mon Sep 17 00:00:00 2001 From: andkirby Date: Mon, 16 Jan 2017 17:04:33 +0200 Subject: [PATCH] Update example-bashrc.md --- docs/example-bashrc.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/example-bashrc.md b/docs/example-bashrc.md index 4b1b8de..5b136b8 100644 --- a/docs/example-bashrc.md +++ b/docs/example-bashrc.md @@ -11,6 +11,9 @@ Please update paths if needed. export COMPOSER_HOME='~/.composer' # not required for non-Windows systems export COMPOSER_CACHE_DIR='~/.composer/cache' # not required for non-Windows systems +# alias for PHP +alias php='/d/s/php-7.1.0-nts-Win32-VC14-x64/php.exe' + if [ -z "$ORIGINAL_PATH" ]; then # this variable prevents adding the same path on reload file ORIGINAL_PATH=$PATH @@ -19,6 +22,7 @@ fi # Make global composer binary files available for running from everywhere PATH=${ORIGINAL_PATH}':~/.composer/vendor/bin' +PATH=${PATH}':'$(php -i | grep 'php.exe' | head -1 | cut -d '>' -f2- | xargs -i dirname {} | sed -re 's|([A-z]):|/\1|g' ) ``` Now you may reload file: ```shell