docs(cmd_duration): Document cmd_duration notifications (#1831)
* docs: add options for cmd_duration notifications Added in #1019 * Update docs/config/README.md Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
This commit is contained in:
parent
368945f5db
commit
597fd40812
|
@ -496,6 +496,15 @@ running `eval $(starship init $0)`, and then proceed as normal.
|
||||||
| `format` | `"took [$duration]($style) "` | The format for the module. |
|
| `format` | `"took [$duration]($style) "` | The format for the module. |
|
||||||
| `style` | `"bold yellow"` | The style for the module. |
|
| `style` | `"bold yellow"` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `cmd_duration` module. |
|
| `disabled` | `false` | Disables the `cmd_duration` module. |
|
||||||
|
| `show_notifications`| `false` | Show desktop notifications when command completes. |
|
||||||
|
| `min_time_to_notify`| `45_000` | Shortest duration for notification (in milliseconds). |
|
||||||
|
|
||||||
|
::: tip
|
||||||
|
|
||||||
|
Showing desktop notifications requires starship to be built with `rust-notify` support. You check if your starship
|
||||||
|
supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue