I'm trying to use my docker php as an interpreter in my terminal. What I need:
- I don't keep my dev envs on my host os. That's important to keep it isolated
- It should be available as
$phpor$/usr/bin/env php - I'd like to be able to run something like phpcs in my vim. It requires that thingy above.
I've tried this:
alias php='docker-compose exec php php'
But it's not available through /usr/bin/env