Crates.io | mark_recall |
lib.rs | mark_recall |
version | 0.1.0 |
source | src |
created_at | 2024-03-22 20:42:07.534188 |
updated_at | 2024-03-22 20:42:07.534188 |
description | A bookmark system for the shell |
homepage | |
repository | https://github.com/technologicalMayhem/mark_recall |
max_upload_size | |
id | 1182977 |
size | 16,589 |
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.
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.