cdb

Change Directory Bookmark

This tool allows to cd to named directories.

Implementation

There is a shell front end that calls a binary back end. The front end is merely
there to call cd after calling the back end, which does all the logic.

Requirements

Works at least with Bash, on Linux (Debian and Ubuntu) and Mac.

The code uses C++, version C++11, and Bash. It was tested to work on Linux and
Mac. The C++ Boost libraries Filesystem and System are
used (sudo apt-get install libboost-all-dev can be used to install the Boost
libraries on Debian).

The compilation of executables was done using the GCC, and make.

Installation

Make it so the files from the front end are sourced. These file call the
executables cdb-back and cdb-bc. Compile the back end executables and either
make links to them in a location in the PATH or move them there and name them
appropriately.

You can also run the file install.sh.

Mac OS Caveat

On Mac OS, since El Capitan, terminal sessions are saved by default (this is
like logging every command and result). This results in the following text
appearing in some calls to a subshell (things like $(...)):

Saving session...
...saving history...truncating history files...
...completed.

To avoid this (annoyance), you can create the file ~/.bash_sessions_disable.
More information here, here, and here.

Visit original content creator repository
https://github.com/pat-laugh/cdb

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *