Skip to content

Commit

Permalink
Update example-bashrc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andkirby authored Jan 16, 2017
1 parent 46d843f commit 11483a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/example-bashrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 11483a5

Please sign in to comment.