From 9d6281c5ed06cfacd094cc95f8b28c66609efbf0 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Mon, 9 Dec 2024 15:39:17 +0100 Subject: [PATCH] docs: Adapt shell completion subsection (#3672) Signed-off-by: Julien Jerphanion --- .../installation/micromamba-installation.rst | 27 ------------------- docs/source/user_guide/concepts.rst | 15 +++++++++++ 2 files changed, 15 insertions(+), 27 deletions(-) diff --git a/docs/source/installation/micromamba-installation.rst b/docs/source/installation/micromamba-installation.rst index 45ed32f1a5..d53c9a29ad 100644 --- a/docs/source/installation/micromamba-installation.rst +++ b/docs/source/installation/micromamba-installation.rst @@ -230,30 +230,3 @@ The executable can be striped to remove its size: .. code:: bash strip "build/micromamba/micromamba" - - -.. _shell_completion: - -Shell completion -**************** - -For now, only ``micromamba`` provides shell completion on ``bash`` and ``zsh``. - -To activate it, it's as simple as running: - -.. code:: bash - - micromamba shell completion - -The completion is now available in any new shell opened or in the current shell after sourcing the configuration file to take modifications into account. - -.. code-block:: sh - - source ~/.rc - -| Just hit ```` to get completion when typing your command. -| For example the following command will help you to pick a named environment to activate: - -.. code-block:: bash - - micromamba activate diff --git a/docs/source/user_guide/concepts.rst b/docs/source/user_guide/concepts.rst index 654f140445..c056efc698 100644 --- a/docs/source/user_guide/concepts.rst +++ b/docs/source/user_guide/concepts.rst @@ -85,3 +85,18 @@ Deactivation ************ The *deactivation* is the opposite operation of :ref:`activation`, removing from your shell what makes the environment content accessible. + + +.. _shell_completion: + +Shell completion +**************** + +After initialization, shell completion is available in any new shell. +Just hit ```` to get completion when typing your command. + +For example the following command will help you to pick a named environment to activate: + +.. code-block:: bash + + micromamba activate