Last active
January 18, 2023 20:37
-
-
Save jwhulette/237d788708033f4e7f65a5f3558d429e to your computer and use it in GitHub Desktop.
[Brew Switch PHP]
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
# add to .zshrc to switch brew php versions | |
alias php82='{ brew unlink [email protected]; brew link php --force --overwrite; } &> /dev/null && php -v' | |
alias php81='{ brew unlink php; brew link [email protected] --force --overwrite; } &> /dev/null && php -v' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment