From 833ff31810ce8d4521913844abd09798ef0911ec Mon Sep 17 00:00:00 2001 From: BarbUk Date: Mon, 21 Dec 2020 09:21:54 +0100 Subject: [PATCH] Migrate command duration documentation --- docs/themes-list/barbuk.rst | 23 ----------------------- docs/themes.rst | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/docs/themes-list/barbuk.rst b/docs/themes-list/barbuk.rst index 665f6356..d9d6b733 100644 --- a/docs/themes-list/barbuk.rst +++ b/docs/themes-list/barbuk.rst @@ -93,29 +93,6 @@ Please refer to the following documentation for more information: EOF 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 -------- diff --git a/docs/themes.rst b/docs/themes.rst index aa21a7e3..065127f0 100644 --- a/docs/themes.rst +++ b/docs/themes.rst @@ -37,6 +37,27 @@ See :ref:`here `. 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 =============