feat(ruby): Add environment variable checks to ruby module (#3206)

* feat(ruby): Add environment variable checks to ruby module

* docs(ruby): describe version detection method
This commit is contained in:
Aaron Kollasch
2021-11-08 15:21:09 -05:00
committed by GitHub
parent 2014bd3a12
commit d1ce352528
3 changed files with 40 additions and 1 deletions
+4
View File
@@ -2642,6 +2642,9 @@ The module will be shown if any of the following conditions are met:
- The current directory contains a `Gemfile` file
- The current directory contains a `.ruby-version` file
- The current directory contains a `.rb` file
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
Starship gets the current Ruby version by running `ruby -v`.
### Options
@@ -2653,6 +2656,7 @@ The module will be shown if any of the following conditions are met:
| `detect_extensions` | `["rb"]` | Which extensions should trigger this module. |
| `detect_files` | `["Gemfile", ".ruby-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Which environment variables should trigger this module. |
| `style` | `"bold red"` | The style for the module. |
| `disabled` | `false` | Disables the `ruby` module. |