Skip to content

Instantly share code, notes, and snippets.

@jwhulette
Last active January 18, 2023 20:37
Show Gist options
  • 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 [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