Migrate command duration documentation

pull/1683/head
BarbUk 2020-12-21 09:21:54 +01:00
parent efe4c74ab4
commit 833ff31810
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
2 changed files with 21 additions and 23 deletions

View File

@ -93,29 +93,6 @@ Please refer to the following documentation for more information:
EOF EOF
chmod 400 /etc/sudoers.d/keepenv chmod 400 /etc/sudoers.d/keepenv
Command duration
----------------
Command duration reports the duration of the last command.
Usage
^^^^^
Command duration can be enabled by exporting ``BASH_IT_COMMAND_DURATION``:
.. code-block:: bash
export BASH_IT_COMMAND_DURATION=true
All duration of one second and more are displayed.
You can customize the minimum time in seconds before command duration is displayed in your ``.bashrc``:
.. code-block:: bash
export COMMAND_DURATION_MIN_SECONDS=5
Examples Examples
-------- --------

View File

@ -37,6 +37,27 @@ See :ref:`here <list_of_themes>`.
Theme Switches & Variables Theme Switches & Variables
^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^
Command duration
================
Prints last command duration
Usage
#####
Command duration can be enabled by exporting ``BASH_IT_COMMAND_DURATION``:
.. code-block:: bash
export BASH_IT_COMMAND_DURATION=true
The default configuration display last command duration for command lasting one second or more.
You can customize the minimum time in seconds before command duration is displayed in your ``.bashrc``:
.. code-block:: bash
export COMMAND_DURATION_MIN_SECONDS=5
Clock Related Clock Related
============= =============