mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: implement the ruby module (#131)
This commit is contained in:
committed by
Matan Kushner
parent
f10bfe4616
commit
b06249d61c
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user