rust-autojump

Crates.iorust-autojump
lib.rsrust-autojump
version0.1.3
sourcesrc
created_at2022-04-20 16:25:44.142736
updated_at2022-04-20 17:02:37.909333
descriptionRust implementation of the autojump command
homepage
repositoryhttps://github.com/zbsss/rust-autojump
max_upload_size
id571039
size13,559
MichaƂ Kurleto (zbsss)

documentation

README

rust-autojump

crates.io

Installation

cargo install rust-autojump

For the script to work add the following code to your .bash_profile or .zshrc
or copy is to a script and run source scriptname.sh

rj() {
    search_phrase=$1
    best_match=$(rust-autojump -s $search_phrase)

    cd $best_match
    echo  $best_match
}

rust_jump_chpwd() {
    rust-autojump --add "$(pwd)" >/dev/null &!
}

typeset -gaU chpwd_functions
chpwd_functions+=rust_jump_chpwd

Usage

autojump is a faster way to navigate your filesystem.
It works by maintaining a database of the directories you use the most from the command line.

Directories must be visited first before they can be jumped to.

Eg. jump to a directory that best matches foo

rj foo     
Commit count: 4

cargo fmt