Let's be honest... when using the terminal, there are just a handful of directories where we really do some work on.
Instead of typing, or looking at the history, for our last cd command, why not catch the most active directories in an easy and practical space?
Throw the bait and catch the most used directories.
Bait is a small CLI tool that catches the current working directory every time you call the command.
You can review yours catches and jump instantaneously to those directories.
The catches are permanent and not tied to a specific session.
All entries can also be easily removed.
* got some inspiration from Harpoon.
Linux, bash
Terminal type:
- xterm ...
- (maybe more, but not tested)
Run the following command inside the src folder:
$ sudo make install
... afterwards, add this function to the .bashrc file:
# I know that this is manhoso!
bait() {
eval $(bait-tool $1 3>&1 1>&2 2>&3) 2> /dev/null
}
The better way to init the bait script is to run the catch command.
By doing so, you will start by creating the file that will persist your data.