chruby
« Back to VersTracker
Description:
Ruby environment tool
Type: Formula  |  Latest Version: 0.3.9@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: ruby version-manager development environment
Install: brew install chruby
About:
chruby is a tool for switching between multiple installed Ruby versions. It works by modifying the PATH environment variable to point to the desired Ruby installation. This provides a lightweight and simple way to manage different Ruby environments without requiring shell rehashing.
Key Features:
  • Lightweight and dependency-free
  • Changes the active Ruby by modifying PATH
  • Supports auto-switching based on .ruby-version files
  • Simple shell integration via sourcing scripts
Use Cases:
  • Managing multiple Ruby versions (e.g., MRI, JRuby) on a single machine
  • Switching Ruby versions per-project for compatibility testing
  • Ensuring consistent Ruby environments across development teams
Alternatives:
  • rbenv – Similar functionality, but uses shims and requires rehashing after installing new gems.
  • RVM – More feature-rich (includes gemsets), but heavier and modifies the shell more extensively.
License: MIT
Bottles available for: all
Important Notes:
Add the following to the ~/.bash_profile or ~/.zshrc file:
  source $HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh

To enable auto-switching of Rubies specified by .ruby-version files,
add the following to ~/.bash_profile or ~/.zshrc:
  source $HOMEBREW_PREFIX/opt/chruby/share/chruby/auto.sh
Version History
Detected Version Rev Change Commit