Created
January 4, 2022 08:18
-
-
Save vbalagovic/46be81893a11966814f2a240b4e4c229 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
#select php version | |
brew link php@8.0 | |
#use based on bash or zsh | |
echo 'export PATH="/usr/local/opt/php@8.0/bin:$PATH"' >> ~/.zshrc | |
echo 'export PATH="/usr/local/opt/php@8.0/sbin:$PATH"' >> ~/.zshrc | |
#oneliner | |
brew link php@8.0 && echo 'export PATH="/usr/local/opt/php@8.0/bin:$PATH"' >> ~/.zshrc && echo 'export PATH="/usr/local/opt/php@8.0/sbin:$PATH"' >> ~/.zshrc | |
#source rc file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment