Skip to content

Instantly share code, notes, and snippets.

View imjlk's full-sized avatar
👋

Junglei Kim imjlk

👋
View GitHub Profile
@imjlk
imjlk / switch_php_versions.sh
Created October 21, 2022 10:58
Add aliases of switch PHP versions on Mac OS
# 1. Need to install PHP with `brew install ...`
# 2. Need to install grep `brew install grep`
# 3. Paste it in your `~/.zshrc`
# Updated from https://localheinz.com/blog/2020/05/05/switching-between-php-versions-when-using-homebrew/
# determine versions of PHP installed with HomeBrew
installedPhpVersions=($(brew ls --versions | ggrep -E 'php(@.*)?\s' | ggrep -oP '(?<=\s)\d\.\d' | uniq | sort))
# create alias for every version of PHP installed with HomeBrew
for phpVersion in ${installedPhpVersions[*]}; do
@imjlk
imjlk / cloudSettings
Last active February 17, 2021 09:01
settingsSync
{"lastUpload":"2021-02-17T09:01:01.736Z","extensionVersion":"v3.4.3"}