Skip to content

Instantly share code, notes, and snippets.

@plewandowski
Created October 14, 2021 08:06
Show Gist options
  • Save plewandowski/a9df6a1e7e5ba288149d37719f01f222 to your computer and use it in GitHub Desktop.
Save plewandowski/a9df6a1e7e5ba288149d37719f01f222 to your computer and use it in GitHub Desktop.
alias to switch php version with homebrew on OSX
# ...
# switch php version
alias vphp='function _vphp(){ brew unlink php && brew link --overwrite --force php@$1; }; _vphp'
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment