Skip to content

Instantly share code, notes, and snippets.

View LucasMali's full-sized avatar

Luke LucasMali

View GitHub Profile
LucasMali /
Last active March 24, 2021 14:09 — forked from rhukster/
Easy Brew PHP version switching
# Creator: Phil Cook
# Modified: Andy Miller
# Modified: Lucas Maliszewski
# TODO: Add flag to reload apache
# TODO: Add flag to reload nginx
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)