mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
38b24c2325
This makes it so we link to the very top of the document instead of a special anchor we manually include. So clicking e.g. :doc:`string <cmds/string>` will link you to cmds/string.html instead of cmds/string.html#cmd-string. I would love to have a way to say "this document from the root of the document path", but that doesn't appear to work, I tried `/cmds/string`. So we'll just have to use cmds/string in normal documents and plain `string` from other commands.
27 lines
782 B
ReStructuredText
27 lines
782 B
ReStructuredText
.. _cmd-dirh:
|
|
|
|
dirh - print directory history
|
|
==============================
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
.. synopsis::
|
|
|
|
dirh
|
|
|
|
Description
|
|
-----------
|
|
|
|
``dirh`` prints the current :ref:`directory history <directory-history>`. The current position in the history is highlighted using the color defined in the ``fish_color_history_current`` environment variable.
|
|
|
|
``dirh`` does not accept any parameters.
|
|
|
|
Note that the :doc:`cd <cd>` command limits directory history to the 25 most recently visited directories. The history is stored in the ``$dirprev`` and ``$dirnext`` variables.
|
|
|
|
See Also
|
|
--------
|
|
|
|
- the :doc:`cdh <cdh>` command to display a prompt to quickly navigate the history
|
|
- the :doc:`prevd <prevd>` command to move backward
|
|
- the :doc:`nextd <nextd>` command to move forward
|