From 84c95324e1fd7997c4a811a124ac8afd4428dcb7 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Fri, 13 Mar 2020 07:41:00 +0100 Subject: [PATCH] doc: add links to count and contains commands in list section --- doc_src/index.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc_src/index.rst b/doc_src/index.rst index 4fa30746f..e670f4d93 100644 --- a/doc_src/index.rst +++ b/doc_src/index.rst @@ -970,6 +970,15 @@ When a list is exported as an environment variable, it is either space or colon ``fish`` automatically creates lists from all environment variables whose name ends in PATH, by splitting them on colons. Other variables are not automatically split. +Lists can be inspected with the :ref:`count ` or the :ref:`contains ` commands:: + + count $smurf + # 2 + + contains blue $smurf + # key found, exits with status 0 + + .. _variables-path: PATH variables