feat: Added ability for setting command duration prefix (#414)

This commit is contained in:
Tom Hotston
2019-09-30 06:26:32 +01:00
committed by Matan Kushner
parent 61604a4a8e
commit 7588137b09
3 changed files with 48 additions and 6 deletions
+7 -5
View File
@@ -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