1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-22 15:21:56 +00:00

Add documentation for the command_execution_time segment

This commit is contained in:
Dominik Ritter 2017-02-16 21:11:31 +01:00
parent 875dec5dae
commit 4c91c5e02e

View file

@ -140,7 +140,7 @@ The segments that are currently available are:
**Other:**
* [`custom_command`](#custom_command) - Create a custom segment to display the
output of an arbitrary command.
* [`command_execution_time`] - Display the time the current command took to execute.
* [`command_execution_time`](#command_execution_time) - Display the time the current command took to execute.
* [`todo`](http://todotxt.com/) - Shows the number of tasks in your todo.txt tasks file.
* `detect_virt` - Virtualization detection with systemd
@ -205,6 +205,9 @@ without affecting the icon color.
Display the time the current command took to execute if the time is above
`POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD` (defaults to 3 seconds).
The time is shown human readable, if it exceeds one minute. If you want more
precision, just set `POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=2` (or
whatever precision you want).
##### custom_command