mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix(jobs): Handle zero jobs with zero thresholds (#2613)
* Handle zero jobs with negative thresholds * Allow for zero threshold only * Log when threshold is less than zero * Address comments * Add docs
This commit is contained in:
@@ -1453,7 +1453,8 @@ symbol = "🌟 "
|
||||
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.
|
||||
more than the `threshold` config value, if it exists. If `threshold` is set to 0,
|
||||
then the module will also show when there are 0 jobs running.
|
||||
|
||||
::: warning
|
||||
|
||||
|
||||
Reference in New Issue
Block a user