Home
Theory
News
Documentation
Download
Bio
Directory history lets you recall previous directory locations by name (partial match), number, or previous entry:

mpsh$ cd !str
mpsh$ cd ![n]
mpsh$ cd !

Example: go to the last directory which had "src" somewhere in the path:

mpsh$ cd !src

Show directory history:

mpsh$ cd -s

Clear directory history:

mpsh$ cd -c

You can also change directory to the directory of a command in command history, via command history fields:

mpsh$ cd (!vi.dir)

See command history section for details.