diff --git a/doc_src/cmds/and.rst b/doc_src/cmds/and.rst index 9f5953fcf..6e5956ca1 100644 --- a/doc_src/cmds/and.rst +++ b/doc_src/cmds/and.rst @@ -6,7 +6,7 @@ and - conditionally execute a command Synopsis -------- -PREVIOUS; ``and`` *COMMAND* +PREVIOUS; **and** *COMMAND* Description ----------- diff --git a/doc_src/cmds/break.rst b/doc_src/cmds/break.rst index c801847b4..523709be1 100644 --- a/doc_src/cmds/break.rst +++ b/doc_src/cmds/break.rst @@ -8,7 +8,7 @@ Synopsis | loop_construct | [*COMMANDS* ...] -| ``break`` +| **break** | [*COMMANDS* ...] | end diff --git a/doc_src/cmds/cd.rst b/doc_src/cmds/cd.rst index a3ae6c8e2..38ea70d94 100644 --- a/doc_src/cmds/cd.rst +++ b/doc_src/cmds/cd.rst @@ -6,23 +6,23 @@ cd - change directory Synopsis -------- -``cd`` [*DIRECTORY*] +**cd** [*DIRECTORY*] Description ----------- -``cd`` changes the current working directory. +**cd** changes the current working directory. If *DIRECTORY* is given, it will become the new directory. If no parameter is given, the :envvar:`HOME` environment variable will be used. If *DIRECTORY* is a relative path, all the paths in the :envvar:`CDPATH` will be tried as prefixes for it, in addition to :envvar:`PWD`. It is recommended to keep **.** as the first element of :envvar:`CDPATH`, or :envvar:`PWD` will be tried last. -Fish will also try to change directory if given a command that looks like a directory (starting with **.**, **/** or **~**, or ending with **/**), without explicitly requiring ``cd``. +Fish will also try to change directory if given a command that looks like a directory (starting with **.**, **/** or **~**, or ending with **/**), without explicitly requiring **cd**. -Fish also ships a wrapper function around the builtin ``cd`` that understands ``cd -`` as changing to the previous directory. +Fish also ships a wrapper function around the builtin **cd** that understands ``cd -`` as changing to the previous directory. See also :ref:`prevd `. This wrapper function maintains a history of the 25 most recently visited directories in the ``$dirprev`` and ``$dirnext`` global variables. -If you make those universal variables your ``cd`` history is shared among all fish instances. +If you make those universal variables your **cd** history is shared among all fish instances. As a special case, ``cd .`` is equivalent to ``cd $PWD``, which is useful in cases where a mountpoint has been recycled or a directory has been removed and recreated. diff --git a/doc_src/cmds/command.rst b/doc_src/cmds/command.rst index d5f347139..69b968106 100644 --- a/doc_src/cmds/command.rst +++ b/doc_src/cmds/command.rst @@ -6,12 +6,12 @@ command - run a program Synopsis -------- -``command`` [ *OPTIONS* ] [**COMMAND** [*ARG* ...]] +**command** [ **OPTIONS** ] [*COMMANDNAME* [ARG ...]] Description ----------- -``command`` forces the shell to execute the program ``COMMANDNAME`` and ignore any functions or builtins with the same name. +**command** forces the shell to execute the program *COMMANDNAME* and ignore any functions or builtins with the same name. The following options are available: diff --git a/doc_src/cmds/contains.rst b/doc_src/cmds/contains.rst index 283c765b3..301c78057 100644 --- a/doc_src/cmds/contains.rst +++ b/doc_src/cmds/contains.rst @@ -6,7 +6,7 @@ contains - test if a word is present in a list Synopsis -------- -``contains`` [**options**] *KEY* [*VALUES* ...] +**contains** [**options**] *KEY* [*VALUES* ...] Description -----------