DEV Community

Lawrence Lagerlof
Lawrence Lagerlof

Posted on • Edited on

Autoleap - automatically leap into any previously visited directory

This script adds an amazing feature to the cd command. It records (locally) the path of all directories you visit using cd. When you want to access a previously visited directory, you just need to run cd part_of_directory_name

The script is very lightweight and fast. The image below shows how simple it is to use:

Image showing how to use the tool

You can leap into any directory that exists in the history file, from anywhere.

Installation

  • Access the GitHub project page.
  • Download the script autoleap.sh anywhere.
  • source the script on your .bashrc (add the line source /path/to/script/autoleap.sh to the end of your .bashrc)
  • Reopen the terminal (or source .bashrc)
  • Be happy.

Top comments (0)