mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: Added ability for setting command duration prefix (#414)
This commit is contained in:
committed by
Matan Kushner
parent
61604a4a8e
commit
7588137b09
@@ -257,11 +257,12 @@ running `eval $(starship init $0)`, and then proceed as normal.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | --------------- | ----------------------------------- |
|
||||
| `min_time` | `2` | Shortest duration to show time for. |
|
||||
| `style` | `"bold yellow"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `cmd_duration` module. |
|
||||
| Variable | Default | Description |
|
||||
| ---------- | --------------- | ------------------------------------------- |
|
||||
| `min_time` | `2` | Shortest duration to show time for. |
|
||||
| `prefix` | `took ` | Prefix to display immediately cmd_duration. |
|
||||
| `style` | `"bold yellow"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `cmd_duration` module. |
|
||||
|
||||
### Example
|
||||
|
||||
@@ -270,6 +271,7 @@ running `eval $(starship init $0)`, and then proceed as normal.
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 4
|
||||
prefix = "underwent "
|
||||
```
|
||||
|
||||
## Directory
|
||||
|
||||
Reference in New Issue
Block a user