mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: Implement the prompt module for jobs (#85)
This commit is contained in:
committed by
Matan Kushner
parent
3f6fe50adb
commit
82cf484ced
@@ -250,6 +250,29 @@ The module will be shown if any of the following conditions are met:
|
||||
symbol = "🏎💨 "
|
||||
```
|
||||
|
||||
## Jobs
|
||||
|
||||
The `jobs` module shows the current number of jobs running.
|
||||
The module will be shown only if there are background jobs running.
|
||||
The module will show the number of jobs running if there is more than 1 job, or
|
||||
more than the `threshold` config value, if it exists.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ----------- | ------- | -------------------------------- |
|
||||
| `threshold` | `1` | Show number of jobs if execeded. |
|
||||
| `disabled` | `false` | Disables the `jobs` module. |
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[jobs]
|
||||
threshold = 4
|
||||
```
|
||||
|
||||
## Line Break
|
||||
|
||||
The `line_break` module separates the prompt into two lines.
|
||||
|
||||
Reference in New Issue
Block a user