// ZSH-GIT-REPO-CACHE — INDEX EVERY GIT REPO ON THE MACHINE // FAST cd, FAST PROMPT

zsh plugin · crawls / with fd (or find) · caches all repos / dirty / clean · fzf-driven interactive selection

GitHub Issues
// Color scheme

>_ZSH-GIT-REPO-CACHE

Every git repo on disk, instantly searchable. Crawls the root filesystem to locate every git repository and caches results for instant retrieval. Uses fd when available, falls back to find. Integrates with fzf for interactive selection.

Install

# Zinit
zinit light MenkeTechnologies/zsh-git-repo-cache

# Oh My Zsh
git clone https://github.com/MenkeTechnologies/zsh-git-repo-cache \
    "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-git-repo-cache"
# then: plugins+=(zsh-git-repo-cache)

# Manual
git clone https://github.com/MenkeTechnologies/zsh-git-repo-cache
source zsh-git-repo-cache/zsh-git-repo-cache.plugin.zsh

Data nodes

ZPWR_ALL_GIT_DIRS~/.zsh-git-repo-cache — all repos
ZPWR_ALL_GIT_DIRS_DIRTY~/.zsh-git-repo-cache-dirty — dirty repos
ZPWR_ALL_GIT_DIRS_CLEAN~/.zsh-git-repo-cache-clean — clean repos

Functions

zsh-git-repo-regenAllGitReposscorched-earth rescan of /
zsh-git-repo-regenAllGitReposDirtyrebuild dirty cache
zsh-git-repo-searchAllGitReposquery all indexed repos
zsh-git-repo-searchDirtyGitReposonly repos with uncommitted changes
zsh-git-repo-searchCleanGitReposonly clean working trees
zsh-git-repo-search{Dirty,Clean}GitReposCachecached variants — auto-generate if missing

zpwr verbs

When running inside zpwr:

gitreposlist              list all repos
gitreposcleanlist         list clean repos
gitreposdirtylist         list dirty repos
gitreposcleancachelist    list clean repos (cached)
gitreposdirtycachelist    list dirty repos (cached)
gitrepos                  search all repos in fzf
gitreposclean             search clean repos in fzf
gitreposdirty             search dirty repos in fzf
gitreposcleancache        search clean repos in fzf (cached)
gitreposdirtycache        search dirty repos in fzf (cached)

Sibling plugins

Part of the MenkeTechnologies zsh plugin family — the MenkeTechnologiesMeta umbrella: