Skip to content

Instantly share code, notes, and snippets.

@mingalevme
mingalevme / podinstall-summary.sh
Last active March 21, 2025 05:21
Installing pods inside Bundler if Podfile changed after git pull, merge or checkout (git hooks)
#!/usr/bin/env bash
# Install brew https://brew.sh/
# Install Ruby
brew install ruby
if [ -z "$ZSH_VERSION" ]; then
# Zsh
cat ~/.zprofile | grep "/opt/ruby/bin" > /dev/null || (echo "export PATH=$(brew --prefix)/opt/ruby/bin:\$PATH" >> ~/.zprofile)
source ~/.zprofile