Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougkusanagi/7f93ed43528186e59551a083b6870a4a to your computer and use it in GitHub Desktop.
Save dougkusanagi/7f93ed43528186e59551a083b6870a4a to your computer and use it in GitHub Desktop.
// create fake php binary
sudo touch /usr/local/bin/php
// open nano editor
sudo nano /usr/local/bin/php
// paste this content
path=$(printf '%s\n' "${PWD##*/}")
command="docker exec ${path}_laravel.test_1 php "$@""
echo "Running php on docker ${path}_laravel.test_1"
$command
// make it executable
sudo chmod +x /usr/local/bin/php
- open vscode > config > click on WSL tab
- search php > Validate Executable
- paste > "php.validate.executablePath": "php",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment