mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08:00
3a23fdf359
Includes harmonizing the display of options and arguments, standardising terminology, using the envvar directive more broadly, adding help options to all commands that support them, simplifying some language, and tidying up multiple formatting issues. string documentation is not changed.
32 lines
642 B
ReStructuredText
32 lines
642 B
ReStructuredText
.. _cmd-dirs:
|
|
|
|
dirs - print directory stack
|
|
============================
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
.. synopsis::
|
|
|
|
dirs [-c]
|
|
|
|
Description
|
|
-----------
|
|
|
|
``dirs`` prints the current :ref:`directory stack <directory-stack>`, as created by :ref:`pushd <cmd-pushd>` and modified by :ref:`popd <cmd-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 :ref:`cdh <cmd-cdh>` command, which provides a more intuitive way to navigate to recently visited directories.
|