Created
September 14, 2022 19:29
-
-
Save paperscissors/cc762c9d2282d969fe7fac913cded03a 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
switchphp () { | |
phpversion="$(php -v | head -n 1 | cut -d " " -f 2 | cut -f1-2 -d".")" | |
brew unlink php@$phpversion && brew link php@$1 && valet use php@$1 --force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment