mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 08:51:14 -03:00
No need to define "cmd-foo" anchors; use :doc:`foo <cmds/foo>`
instead. If we want "cmd-foo" but it should be tested.
See also 38b24c2325 (docs: Use :doc: role when linking to commands,
2022-09-23).
26 lines
767 B
ReStructuredText
26 lines
767 B
ReStructuredText
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
|