Marks consists of a handful of shell functions that comprise a bookmarking
system for the command line. Bookmarks are saved as symlinks in a folder
($MARKSPATH
).
This project was inspired by the simplicity of a concept described in this
article, and born out of frustration of another similar project known as
apparix
.
to
-- visit a mark or directory (cd
replacement)mark
-- create a new markrmmark
-- remove a markmarks
-- list all marks
$ marks
No bookmarks.
$ pwd
/home/victor/docs/recipes
$ mark
new mark: recipes -> /home/victor/docs/recipes
$ ls
sauces/ soups/ pastry/
$ cd soups
$ mark supps # mark with custom name
new mark: supps -> /home/victor/docs/recipes/soups
$ cd ..
$ mark ./sauces sassies # mark specified dir with custom name
new mark: sassies -> /home/victor/docs/recipes/sauces
$ marks
recipes -> /home/victor/docs/recipes
sassies -> /home/victor/docs/recipes/sauces
supps -> /home/victor/docs/recipes/soups
$ to # same as `cd`
$ pwd
/home/victor
$ to recipes # goto mark
$ pwd
/home/victor/docs/recipes
$ to - # same as `cd -`
~
$ to supps
$ pwd
/home/victor/docs/recipes/soups