mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
README: cleaning up new command_execution_time
segment docs
This commit is contained in:
parent
4c91c5e02e
commit
c2cbb32017
1 changed files with 10 additions and 5 deletions
15
README.md
15
README.md
|
@ -203,11 +203,16 @@ without affecting the icon color.
|
||||||
|
|
||||||
##### command_execution_time
|
##### command_execution_time
|
||||||
|
|
||||||
Display the time the current command took to execute if the time is above
|
Display the time the previous command took to execute if the time is above
|
||||||
`POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD` (defaults to 3 seconds).
|
`POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD`. The time is formatted to be
|
||||||
The time is shown human readable, if it exceeds one minute. If you want more
|
"human readable", and so scales the units based on the length of execution time.
|
||||||
precision, just set `POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=2` (or
|
If you want more precision, just set the
|
||||||
whatever precision you want).
|
`POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION` field.
|
||||||
|
|
||||||
|
| Variable | Default Value | Description |
|
||||||
|
|----------|---------------|-------------|
|
||||||
|
|`POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD`|3|Threshold above which to print this segment. Can be set to `0` to always print.|
|
||||||
|
|`POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=2`|2|Number of digits to use in the fractional part of the time value.|
|
||||||
|
|
||||||
##### custom_command
|
##### custom_command
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue