1 unstable release
0.1.0 | Mar 22, 2024 |
---|
#2798 in Command line utilities
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
~1.7–9MB
~87K SLoC