Skip to content
Discussion options

You must be logged in to vote

OK, I put this in my CLAUDE.md (exact wording suggested by claude, 🤷 ), which seems to work.

## Running Ruby commands

Prefix all Ruby-related shell commands (`ruby`, `bundle`, `./bin/rspec`, `rake`, etc.) with `chruby-exec $(cat .ruby-version) --` so the correct Ruby version is used via chruby auto-detection.

Example:
\```
chruby-exec $(cat .ruby-version) -- ./bin/rspec spec/foo_spec.rb
\```

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@havenwood
Comment options

@jrochkind
Comment options

@jrochkind
Comment options

@jrochkind
Comment options

Answer selected by jrochkind

This comment was marked as off-topic.

@jrochkind
Comment options

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

@jrochkind
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants