Created
July 18, 2022 01:01
-
-
Save dougkusanagi/7f93ed43528186e59551a083b6870a4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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