# postmodern/chruby

Changes the current Ruby

Repository: https://github.com/postmodern/chruby
Canonical: https://ross.abutalabs.com/products/chruby
Language: Shell
License: MIT
License Family: permissive
Last push: 2025-10-27T05:38:57+00:00

## Health v2 (maintenance only)
Score: 45/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 49, release rhythm 8, longevity 100
- inputs: {"age_days": 5145, "days_push": 310, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2912, forks 183 (observed 2026-08-28T04:07:29.301944+00:00)

## What it is
chruby is a minimal shell script (~100 LOC) for switching between installed Ruby versions in bash and zsh. It updates PATH, GEM_HOME, and related environment variables, with optional auto-switching via .ruby-version files.

## Use cases
- switch between multiple ruby versions on my machine
- set ruby version per project with .ruby-version file
- avoid rbenv shims and just change PATH for ruby
- manage GEM_HOME and GEM_PATH when switching rubies
- fuzzy match and select an installed ruby by name
- use jruby or rubinius alongside MRI ruby

## When to choose
- you want a tiny, simple Ruby version switcher without shims or cd hooks
- you use bash or zsh and manage Rubies yourself (e.g. with ruby-install)
- you prefer minimal tooling with no daemon or regeneration steps

## When to avoid
- you need automatic Ruby installation - use ruby-install, rvm, or asdf alongside it
- you need per-project auto-switching enabled by default without extra setup
- you don't use bash or zsh

## Facets
- artifact type: cli-tool
- maturity: stable
- function: developer-tools, cli, configuration-management
- domain: developer-tools, programming-languages
- platform: cli, cross-platform
- tags: ruby, version-manager, shell, bash, zsh, environment-management, command-line, linux, macos

## Member repositories
- postmodern/chruby (main) score 45

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:29.301944+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:34:14.433558+00:00, confidence not recorded.
  - readme: https://github.com/postmodern/chruby (fetched 2026-08-28T04:07:29.301944+00:00, sha 7823c71ee51b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
