feat: implement the ruby module (#131)

This commit is contained in:
André Zanellato
2019-08-13 19:43:29 -03:00
committed by Matan Kushner
parent f10bfe4616
commit b06249d61c
8 changed files with 155 additions and 0 deletions
+23
View File
@@ -292,6 +292,29 @@ The `line_break` module separates the prompt into two lines.
disabled = true
```
## Ruby
The `ruby` module shows the currently installed version of NodeJS.
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 `.rb` file
### Options
| Variable | Default | Description |
| ---------- | ------- | -------------------------------------------------------- |
| `disabled` | `false` | Disables the `ruby` module. |
### Example
```toml
# ~/.config/starship.toml
[ruby]
disabled = false
```
## NodeJS
The `nodejs` module shows the currently installed version of NodeJS.