cdh [ directory ]
cdh with no arguments presents a list of recently visited directories. You can then select one of the entries by letter or number. You can also press tab to use the completion pager to select an item from the list. If you give it a single argument it is equivalent to
Note that the
cd command limits directory history to the 25 most recently visited directories. The history is stored in the
$dirnext variables which this command manipulates. If you make those universal variables your
cd history is shared among all fish instances.
© 2019 fish-shell developers
Licensed under the GNU General Public License, version 2.