if [[ "$OSTYPE" == "darwin"* ]]; then ARCH=$(uname -m) if [[ "$ARCH" == "arm64" ]]; then eval "$(/opt/homebrew/bin/brew shellenv)" elif [[ "$ARCH" == "x86_64" ]]; then eval "$(/usr/local/bin/brew shellenv)" fi export PATH="$(brew --prefix ruby)/bin:$PATH" fi