https://github.com/jeffwilliams/dirhistory
Remember previous directories in bash and define keyboard shortcuts to change current directory to previous/next entries in history.
https://github.com/jeffwilliams/dirhistory
bash shell shell-productivity
Last synced: about 1 year ago
JSON representation
Remember previous directories in bash and define keyboard shortcuts to change current directory to previous/next entries in history.
- Host: GitHub
- URL: https://github.com/jeffwilliams/dirhistory
- Owner: jeffwilliams
- License: mit
- Created: 2018-02-27T15:40:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T20:34:24.000Z (about 7 years ago)
- Last Synced: 2025-03-21T18:07:28.939Z (about 1 year ago)
- Topics: bash, shell, shell-productivity
- Language: Shell
- Size: 2.93 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`.
