loenard97 / bookmark

A file path bookmarking tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bookmark

A file path bookmarking tool

Usage

Use this bash script:

# .bashrc

bm()
{
    $BMPATH=$(bookmark $1)
    if [[ -n "$BMPATH" ]]; then
        cd $BMPATH
    fi
}

Create a new bookmark for the current working directory with bm mymark. Calling bm mymark a second time will switch the current working directory to this bookmark.

Additionally bm -l will list all bookmarks and bm -r mymark will remove mymark from the list of bookmarks. The list of bookmarks is stored at ~/.cache/bookmark/bookmarks.json.

About

A file path bookmarking tool

License:Open Software License 3.0


Languages

Language:Rust 100.0%