#chruby — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #chruby, aggregated by home.social.
-
@jamiemccarthy @mistersql I don't have raw numbers because #chruby and #rbenv are not gems; they're shell hooks. However, @postmodern actively maintains chruby, and it doesn't need to be updated and rehashed for every upstream update or beta. It also has great support for the Fish shell.
All of them have good use cases & some edge cases. For example, #RVM is "batteries included." I didn't care about how it hooks `cd` until I started using other apps that did, too.
There's no wrong choice!
-
For anyone using the #fish_shell, the following #shell_function definition will let you switch to the latest CRuby #chruby knows about. It could be simplified (e.g. setting a function-local variable is mostly for debugging) or use builtins instead of pipes in shells where that matters, but I still find it useful for myself. Maybe you will, too.
```fish
function chruby-latest
set latest (
chruby | tr -d '*' |
pcregrep -o '\bruby-[\d.]+' | tail -1)
chruby $latest
end
```