Skip to content

Two-hour project: Quick directory switching with statistics and fuzzy matching.

Notifications You must be signed in to change notification settings

PetterS/quickcd

Repository files navigation

QuickCD

Collects statistics of which directories you use and introduces a command (e.g. qcd) that fuzzy-matches in the history for quick change of directories.

Demo

Screenshot

Installation

  1. make
  2. sudo -H python3 -m pip install prompt_toolkit
  3. Run the collection script before every prompt; in bash:
    quickcdStore() {
        /path/to/quickcd-store ~/.quickcd.sqlite3 $PWD
    }
    export PROMPT_COMMAND=quickcdStore
    
  4. Create an alias for switching directories; in bash:
    alias qcd='cd "$(python3 /path/to/quickcd-get.py ~/.quickcd.sqlite3)"'
    

About

Two-hour project: Quick directory switching with statistics and fuzzy matching.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published