mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 00:31:15 -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).
30 lines
615 B
ReStructuredText
30 lines
615 B
ReStructuredText
dirs - print directory stack
|
|
============================
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
.. synopsis::
|
|
|
|
dirs [-c]
|
|
|
|
Description
|
|
-----------
|
|
|
|
``dirs`` prints the current :ref:`directory stack <directory-stack>`, as created by :doc:`pushd <pushd>` and modified by :doc:`popd <popd>`.
|
|
|
|
The following options are available:
|
|
|
|
**-c**:
|
|
Clear the directory stack instead of printing it.
|
|
|
|
**-h** or **--help**
|
|
Displays help about using this command.
|
|
|
|
``dirs`` does not accept any arguments.
|
|
|
|
See Also
|
|
--------
|
|
|
|
- the :doc:`cdh <cdh>` command, which provides a more intuitive way to navigate to recently visited directories.
|