Is it safe to switch to the homebrew ruby version system-wide? Won't it break anything?
The brew version is 3.0.3; the system version is 2.6.8p205.
E.g., by adding the following lines to .zshrc
:
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/ruby/lib"
export CPPFLAGS="-I/opt/homebrew/opt/ruby/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/ruby/lib/pkgconfig"