#bookmark #shell #tool #cli

app mark_recall

A bookmark system for the shell

1 unstable release

0.1.0 Mar 22, 2024

#1238 in Command line utilities

Download history 148/week @ 2024-03-19 8/week @ 2024-03-26 20/week @ 2024-04-02

176 downloads per month

MIT license

7KB
129 lines

Mark and Recall

Installation

Place the application in a folder that is in your PATH.

And add this to the profile of your shell.

# Mark and recall
alias "mark=mr mark"

function recall() {
  cd $(mr recall $1)
}

The recall function is needed as command line applications cannot change your current path. So the app just returns the requested path and we tell the shell to change directory with that function.

Usage

You can use mark, (or mr mark, if you don't use the alias) to bookmark a directory and recall (or mr recall) to restore it. You can also use a name like this mark cat-pictures and then return to it using recall cat-pictures.

If no name is given, like in the first example, then the bookmark will just be called default. All the bookmarks are stored in ~/.config/marks.list.

There is also mr list to list all currently set marks and mr clear [name] to clear a mark. Use mr clear --all to clear all marks.

Dependencies

~2–12MB
~100K SLoC