This is a simple bookmark tools to help me remember dir and access them with shortcut.
Usage:
to save foo # save current dir as foo
to delete foo # delete foo bookmark
to list # list all saved dirs
to list -c # list all saved dirs under current dir
to list -f foo # list all saved dirs with foo prefix
to find foo # find the bookmarked dir keyword match to foo
j foo # cd to foo matched bookmarked dir
Need to use shell's function to actually cd to the dir.
- find if an exact match. eg. if "foo", "foobar" is saved,
to find foo
will match "foo" - find the shortest match with given word as prefix. eg. if "foo", "foobar"
is saved,
to find f
will match "foo"
to completion fish > ~/.config/fish/completions/to.fish
# or other shell
For fish:
scripts/fish/install.sh