GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - schnow265/ZoxidePredictor: A PSReadLine Predictor which uses zoxide under the hood - MOVED TO GITLAB

This repository was archived by the owner on Jun 22, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
ZoxidePredictor
ZoxidePredictor
 
 
assets
assets
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ZoxidePredictor.sln
ZoxidePredictor.sln
 
 

Repository files navigation

NOTE: Moved to GitLab.

ZoxidePredictor

This is an experimental PSReadLine predictor using zoxide results to show you what folder you are about to cd into - before you press enter.

Note: This module currently has the zoxide command fixed to cd.

You can set the zoxide alias to cd by replacing the zoxide init line in your $PROFILE with this

Invoke-Expression (& { (zoxide init powershell --cmd cd | Out-String) })

How does this work?

  1. Every 60 seconds a background thread activates which will run zoxide query --list --all --score and parses the result into an in-memory dictionary.
  2. Does nothing until you type cd (note the space at the end) just like you would with zoxide.
  3. This module then sorts prediction results using a C# Reimplementation of the zoxide algorithm to the shell to show up as suggestions The Predictor in action

Installation

Dependencies

  • PowerShell Core
  • PsReadLine version 2.1.0 or later (Update using Update-Module)
  • dotnet version 9.x
  • zoxide

Build & Install

  1. Clone this repo
  2. Enter the Subdirectory ZoxidePredictor
  3. Run (best in PowerShell):
    # non-Windows
    dotnet publish -c Release -o $HOME/.local/share/powershell/Modules/ZoxidePredictor
    
    # Windows
    dotnet publish -c Release -o $HOME\Documents\PowerShell\Modules\ZoxidePredictor
  4. Add the following to your $PROFILE:
    Import-Module ZoxidePredictor
  5. Restart powershell and verify that the provider has been registered by running Get-PSSubsystem -Kind CommandPredictor, which should have zoxide under Implementations

Bonus Tip:

Press <F2> to switch between inline and list. (I personally prefer list).

To permanently change to list by default, add the following line to your $PROFILE:

Set-PSReadLineOption -PredictionViewStyle ListView

(You may also need to add Import-Module PSReadLine at the top. On some systems I need it, on others not.)

TODO

These are things still to do:

  • Add build workflow
  • Add Tests (where possible)
  • if any of my other projects require it: Extract Matcher.cs into a seperate project and maintain the implementation properly there
  • Find a way to do ci/cd releases on tags to PSGallery for easier installation

About

A PSReadLine Predictor which uses zoxide under the hood - MOVED TO GITLAB

gitlab.com/schnow265/ZoxidePredictor

Topics

powerhsellpsreadline

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.