Skip to content

Instantly share code, notes, and snippets.

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