<commit_before># rbfu

**rbfu is a simple tool that manages multiple installations of Ruby and allows you to switch between them on the fly.**

## Rationale

Most Ruby developers like to keep different self-compiled versions of Ruby on their systems so they can switch back and forth between them depending on the project they're working on. Most of them use [RVM](https://rvm.io/) to do this; others prefer [rbenv](https://github.com/sstephenson/rbenv/). Both are great tools, but do a little bit too much for my taste.

See, the thing is: switching Ruby versions is actually a trivial operation, since it merely involves modifying a couple of environment variables (`PATH`, `GEM_HOME` and `GEM_PATH`). Both RVM and rbenv go through a lot of hassle in order to eventually perform this very simple operation.

**rbfu** is trying to keep things simple; it's a small shell script that doesn't do much else beyond changing the variables mentioned above.

I believe that software should be small and focused. rbfu doesn't come with support for gemsets (a feature I personally disagree with), nor will it compile Ruby for you (it's easy enough with [ruby-build](https://github.com/sstephenson/ruby-build/)).

It just does one thing, and I think it does it really well.<commit_msg>Add a quick invocation introduction to the README.<commit_after># rbfu

**rbfu is a simple tool that manages multiple installations of Ruby and allows you to switch between them on the fly.**

First and foremost, it supports an explicit invocation style that takes a Ruby version as a command line parameter or reads it from `.ruby-version`, if present:

``` shell
$ rbfu @1.8.7 ruby -v
$ rbfu ruby -v         # reads from .ruby-version
```

You can use `rbfu-env` to modify the current shell session:

``` shell
$ rbfu-env @1.8.7
$ rbfu-env         # reads from .ruby-version
```

And, of course, there's also an (optional) automatic mode that automatically modifies your shell session when you cd into a directory containing a `.ruby-version` file.

## Rationale

Most Ruby developers like to keep different self-compiled versions of Ruby on their systems so they can switch back and forth between them depending on the project they're working on. Most of them use [RVM](https://rvm.io/) to do this; others prefer [rbenv](https://github.com/sstephenson/rbenv/). Both are great tools, but do a little bit too much for my taste.

See, the thing is: switching Ruby versions is actually a trivial operation, since it merely involves modifying a couple of environment variables (`PATH`, `GEM_HOME` and `GEM_PATH`). Both RVM and rbenv go through a lot of hassle in order to eventually perform this very simple operation.

**rbfu** is trying to keep things simple; it's a small shell script that doesn't do much else beyond changing the variables mentioned above.

I believe that software should be small and focused. rbfu doesn't come with support for gemsets (a feature I personally disagree with), nor will it compile Ruby for you (it's easy enough with [ruby-build](https://github.com/sstephenson/ruby-build/)).

It just does one thing, and I think it does it really well.
{'fraction_non_alphanumeric': 0.07056579783852511, 'fraction_numerical': 0.0019071837253655435, 'mean_word_length': 4.271356783919598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1105065', 'n_tokens_mistral': 851, 'n_tokens_neox': 812, 'n_words': 473}