Skip to content

Remember previous directories in bash and define keyboard shortcuts to change current directory to previous/next entries in history.

License

Notifications You must be signed in to change notification settings

jeffwilliams/dirhistory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

dirhistory - Bash Directory History

This script overrides the bash cd command so that it saves the previous directory to a directory history. ALT-Left then moves back to previous directories in the history, and ALT-Right moves forward. ALT-Up changes to the parent directory. Finally, ALT-Down displays the history.

It also adds a cde command which copies all future directories to the history and then changes to the directory, in order to preserve all history.

Install

Copy .dirhistory.bash to your home directory and source it from your .bashrc.

About

Remember previous directories in bash and define keyboard shortcuts to change current directory to previous/next entries in history.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages