Composer memory limit errors

According to docs https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors I ended up aliasing composer command:

alias composer="php -d memory_limit=-1 $(which composer)"
Advertisements