Use dashes instead of underscores pervasively in tutorial anchors

This fixes some broken help completions.
This commit is contained in:
ridiculousfish
2020-07-31 12:06:40 -07:00
parent c940af1600
commit 1c2323e76f
3 changed files with 30 additions and 30 deletions

View File

@@ -265,7 +265,7 @@ To give a variable to an external command, it needs to be "exported". Unlike oth
It can also be unexported with ``--unexport`` or ``-u``.
.. _tut_lists:
.. _tut-lists:
Lists
-----
@@ -380,7 +380,7 @@ Unlike other shells, fish does not split command substitutions on any whitespace
-lglib-2.0
.. _tut_semicolon:
.. _tut-semicolon:
Separating Commands (Semicolon)
-------------------------------
@@ -434,7 +434,7 @@ fish also supports :ref:`and <cmd-and>`, :ref:`or <cmd-or>`, and :ref:`not <cmd-
Backup failed
As mentioned in :ref:`the section on the semicolon <tut_semicolon>`, this can also be written in multiple lines, like so::
As mentioned in :ref:`the section on the semicolon <tut-semicolon>`, this can also be written in multiple lines, like so::
cp file1.txt file1_bak.txt && cp file2.txt file2_bak.txt
and echo "Backup successful"
@@ -606,7 +606,7 @@ You can choose among some sample prompts by running ``fish_config prompt``. ``fi
$PATH
-----
``$PATH`` is an environment variable containing the directories that ``fish`` searches for commands. Unlike other shells, $PATH is a :ref:`list <tut_lists>`, not a colon-delimited string.
``$PATH`` is an environment variable containing the directories that ``fish`` searches for commands. Unlike other shells, $PATH is a :ref:`list <tut-lists>`, not a colon-delimited string.
To prepend /usr/local/bin and /usr/sbin to ``$PATH``, you can write::