PetterS / quickcd

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Python 42.9%Language:C++ 42.6%Language:Makefile 14.4%