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